public static final class OvernightIndexObservation.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIndexObservation>
OvernightIndexObservation.| Modifier and Type | Method and Description |
|---|---|
OvernightIndexObservation |
build() |
OvernightIndexObservation.Builder |
effectiveDate(LocalDate effectiveDate)
Sets the effective date of the investment implied by the fixing date.
|
OvernightIndexObservation.Builder |
fixingDate(LocalDate fixingDate)
Sets the date of the index fixing.
|
Object |
get(String propertyName) |
OvernightIndexObservation.Builder |
index(OvernightIndex index)
Sets the Overnight index.
|
OvernightIndexObservation.Builder |
maturityDate(LocalDate maturityDate)
Sets the maturity date of the investment implied by the fixing date.
|
OvernightIndexObservation.Builder |
publicationDate(LocalDate publicationDate)
Sets the date that the rate implied by the fixing date is published.
|
OvernightIndexObservation.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
OvernightIndexObservation.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
OvernightIndexObservation.Builder |
yearFraction(double yearFraction)
Sets the year fraction of the investment implied by the fixing date.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<OvernightIndexObservation>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIndexObservation>public OvernightIndexObservation.Builder set(String propertyName, Object newValue)
public OvernightIndexObservation.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<OvernightIndexObservation>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIndexObservation>public OvernightIndexObservation build()
public OvernightIndexObservation.Builder index(OvernightIndex index)
The rate will be queried from this index.
index - the new value, not nullpublic OvernightIndexObservation.Builder fixingDate(LocalDate fixingDate)
This is an adjusted date with any business day rule applied.
Valid business days are defined by RateIndex.getFixingCalendar().
fixingDate - the new value, not nullpublic OvernightIndexObservation.Builder publicationDate(LocalDate publicationDate)
This is an adjusted date with any business day rule applied.
This must be equal to OvernightIndex.calculatePublicationFromFixing(LocalDate, ReferenceData).
publicationDate - the new value, not nullpublic OvernightIndexObservation.Builder effectiveDate(LocalDate effectiveDate)
This is an adjusted date with any business day rule applied.
This must be equal to OvernightIndex.calculateEffectiveFromFixing(LocalDate, ReferenceData).
effectiveDate - the new value, not nullpublic OvernightIndexObservation.Builder maturityDate(LocalDate maturityDate)
This is an adjusted date with any business day rule applied.
This must be equal to OvernightIndex.calculateMaturityFromEffective(LocalDate, ReferenceData).
maturityDate - the new value, not nullpublic OvernightIndexObservation.Builder yearFraction(double yearFraction)
This is calculated using the day count of the index. It represents the fraction of the year between the effective date and the maturity date. Typically the value will be close to 1 for one year and close to 0.5 for six months.
yearFraction - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightIndexObservation>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.