public final class IborIndexObservation extends Object implements IndexObservation, org.joda.beans.ImmutableBean, Serializable
An interest rate determined directly from an Ibor index. For example, a rate determined from 'GBP-LIBOR-3M' on a single fixing date.
| Modifier and Type | Class and Description |
|---|---|
static class |
IborIndexObservation.Meta
The meta-bean for
IborIndexObservation. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency of the Ibor index.
|
LocalDate |
getEffectiveDate()
Gets the effective date of the investment implied by the fixing date.
|
LocalDate |
getFixingDate()
Gets the date of the index fixing.
|
IborIndex |
getIndex()
Gets the Ibor index.
|
LocalDate |
getMaturityDate()
Gets the maturity date of the investment implied by the fixing date.
|
double |
getYearFraction()
Gets the year fraction of the investment implied by the fixing date.
|
int |
hashCode() |
static IborIndexObservation.Meta |
meta()
The meta-bean for
IborIndexObservation. |
IborIndexObservation.Meta |
metaBean() |
static IborIndexObservation |
of(IborIndex index,
LocalDate fixingDate,
ReferenceData refData)
Creates an instance from an index and fixing date.
|
String |
toString() |
public static IborIndexObservation of(IborIndex index, LocalDate fixingDate, ReferenceData refData)
The reference data is used to find the maturity date from the fixing date.
index - the indexfixingDate - the fixing daterefData - the reference data to use when resolving holiday calendarspublic Currency getCurrency()
public static IborIndexObservation.Meta meta()
IborIndexObservation.public IborIndexObservation.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic IborIndex getIndex()
The rate to be paid is based on this index. It will be a well known market index such as 'GBP-LIBOR-3M'.
getIndex in interface IndexObservationpublic LocalDate getFixingDate()
This is an adjusted date with any business day rule applied.
Valid business days are defined by RateIndex.getFixingCalendar().
public LocalDate getEffectiveDate()
This is an adjusted date with any business day rule applied.
This must be equal to IborIndex.calculateEffectiveFromFixing(LocalDate, ReferenceData).
public LocalDate getMaturityDate()
This is an adjusted date with any business day rule applied.
This must be equal to IborIndex.calculateMaturityFromEffective(LocalDate, ReferenceData).
public double getYearFraction()
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.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.