public final class IborRateComputation extends Object implements RateComputation, 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 |
IborRateComputation.Meta
The meta-bean for
IborRateComputation. |
| Modifier and Type | Method and Description |
|---|---|
void |
collectIndices(ImmutableSet.Builder<Index> builder)
Collects all the indices referred to by this computation.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency of the Ibor index.
|
LocalDate |
getEffectiveDate()
Gets the effective date.
|
LocalDate |
getFixingDate()
Gets the fixing date.
|
IborIndex |
getIndex()
Gets the Ibor index.
|
LocalDate |
getMaturityDate()
Gets the maturity date.
|
IborIndexObservation |
getObservation()
Gets the underlying index observation.
|
double |
getYearFraction()
Gets the year fraction.
|
int |
hashCode() |
static IborRateComputation.Meta |
meta()
The meta-bean for
IborRateComputation. |
IborRateComputation.Meta |
metaBean() |
static IborRateComputation |
of(IborIndex index,
LocalDate fixingDate,
ReferenceData refData)
Creates an instance from an index and fixing date.
|
static IborRateComputation |
of(IborIndexObservation underlyingObservation)
Creates an instance from the underlying index observation.
|
String |
toString() |
public static IborRateComputation 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 static IborRateComputation of(IborIndexObservation underlyingObservation)
underlyingObservation - the underlying index observationpublic IborIndex getIndex()
public Currency getCurrency()
public LocalDate getFixingDate()
public LocalDate getEffectiveDate()
public LocalDate getMaturityDate()
public double getYearFraction()
public void collectIndices(ImmutableSet.Builder<Index> builder)
RateComputationA computation will typically refer to one index, such as 'GBP-LIBOR-3M'. Each index that is referred to must be added to the specified builder.
collectIndices in interface RateComputationbuilder - the builder to usepublic static IborRateComputation.Meta meta()
IborRateComputation.public IborRateComputation.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic IborIndexObservation getObservation()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.