public final class IborInterpolatedRateComputation extends Object implements RateComputation, org.joda.beans.ImmutableBean, Serializable
An interest rate determined from two Ibor indices by linear interpolation. Both indices are observed on the same fixing date and they must have the same currency. For example, linear interpolation between 'GBP-LIBOR-1M' and 'GBP-LIBOR-3M'.
| Modifier and Type | Class and Description |
|---|---|
static class |
IborInterpolatedRateComputation.Meta
The meta-bean for
IborInterpolatedRateComputation. |
| 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) |
LocalDate |
getFixingDate()
Gets the fixing date.
|
IborIndexObservation |
getLongObservation()
Gets the longer Ibor index observation.
|
IborIndexObservation |
getShortObservation()
Gets the shorter Ibor index observation.
|
int |
hashCode() |
static IborInterpolatedRateComputation.Meta |
meta()
The meta-bean for
IborInterpolatedRateComputation. |
IborInterpolatedRateComputation.Meta |
metaBean() |
static IborInterpolatedRateComputation |
of(IborIndex index1,
IborIndex index2,
LocalDate fixingDate,
ReferenceData refData)
Creates an instance from two indices and fixing date.
|
static IborInterpolatedRateComputation |
of(IborIndexObservation shortObservation,
IborIndexObservation longObservation)
Creates an instance from the two underlying index observations.
|
String |
toString() |
public static IborInterpolatedRateComputation of(IborIndex index1, IborIndex index2, LocalDate fixingDate, ReferenceData refData)
The indices may be passed in any order.
index1 - the first indexindex2 - the second indexfixingDate - the fixing daterefData - the reference data to use when resolving holiday calendarspublic static IborInterpolatedRateComputation of(IborIndexObservation shortObservation, IborIndexObservation longObservation)
The two observations must be for two different indexes in the same currency on the same fixing date. The index with the shorter tenor must be passed as the first argument.
shortObservation - the short underlying index observationlongObservation - the long underlying index observationIllegalArgumentException - if the indices are not short, then longpublic LocalDate getFixingDate()
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 IborInterpolatedRateComputation.Meta meta()
IborInterpolatedRateComputation.public IborInterpolatedRateComputation.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic IborIndexObservation getShortObservation()
The rate to be paid is based on this index It will be a well known market index such as 'GBP-LIBOR-1M'.
public IborIndexObservation getLongObservation()
The rate to be paid is based on this index It will be a well known market index such as 'GBP-LIBOR-3M'.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.