public final class FixedOvernightCompoundedAnnualRateComputation extends Object implements RateComputation, org.joda.beans.ImmutableBean, Serializable
An interest rate that is specified in the contract. This is typically used in the fixed legs of a Brazilian swap.
| Modifier and Type | Class and Description |
|---|---|
static class |
FixedOvernightCompoundedAnnualRateComputation.Meta
The meta-bean for
FixedOvernightCompoundedAnnualRateComputation. |
| 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) |
double |
getAccrualFactor()
Gets the accrual factor.
|
double |
getRate()
Gets the fixed rate for overnight compounding.
|
double |
getSimpleRate()
Calculates the simple interest rate associated with the compounded rate.
|
int |
hashCode() |
static FixedOvernightCompoundedAnnualRateComputation.Meta |
meta()
The meta-bean for
FixedOvernightCompoundedAnnualRateComputation. |
FixedOvernightCompoundedAnnualRateComputation.Meta |
metaBean() |
static FixedOvernightCompoundedAnnualRateComputation |
of(double rate,
double accrualFactor)
Obtains an instance from the rate and accrual factor.
|
String |
toString() |
public static FixedOvernightCompoundedAnnualRateComputation of(double rate, double accrualFactor)
rate - the fixed rateaccrualFactor - the accrual factorpublic double getSimpleRate()
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 FixedOvernightCompoundedAnnualRateComputation.Meta meta()
FixedOvernightCompoundedAnnualRateComputation.public FixedOvernightCompoundedAnnualRateComputation.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic double getRate()
public double getAccrualFactor()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.