public final class IborAveragedRateComputation extends Object implements RateComputation, org.joda.beans.ImmutableBean, Serializable
An interest rate determined from a single Ibor index observed on multiple dates. For example, the average of three fixings of 'GBP-LIBOR-3M'.
| Modifier and Type | Class and Description |
|---|---|
static class |
IborAveragedRateComputation.Meta
The meta-bean for
IborAveragedRateComputation. |
| 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) |
ImmutableList<IborAveragedFixing> |
getFixings()
Gets the list of fixings.
|
IborIndex |
getIndex()
Gets the Ibor index.
|
double |
getTotalWeight()
Gets total weight of all the fixings in this observation.
|
int |
hashCode() |
static IborAveragedRateComputation.Meta |
meta()
The meta-bean for
IborAveragedRateComputation. |
IborAveragedRateComputation.Meta |
metaBean() |
static IborAveragedRateComputation |
of(List<IborAveragedFixing> fixings)
Creates an instance from the individual fixings.
|
String |
toString() |
public static IborAveragedRateComputation of(List<IborAveragedFixing> fixings)
All the fixings must have the same index.
fixings - the weighted fixingspublic 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'.
public double getTotalWeight()
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 IborAveragedRateComputation.Meta meta()
IborAveragedRateComputation.public IborAveragedRateComputation.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic ImmutableList<IborAveragedFixing> getFixings()
A fixing will be taken for each reset period, with the final rate being an average of the fixings.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.