public final class FixedRateComputation extends Object implements RateComputation, org.joda.beans.ImmutableBean, Serializable
An interest rate that is specified in the contract or has subsequently been determined.
| Modifier and Type | Class and Description |
|---|---|
static class |
FixedRateComputation.Meta
The meta-bean for
FixedRateComputation. |
| 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 |
getRate()
Gets the fixed rate to be paid.
|
int |
hashCode() |
static FixedRateComputation.Meta |
meta()
The meta-bean for
FixedRateComputation. |
FixedRateComputation.Meta |
metaBean() |
static FixedRateComputation |
of(double rate)
Creates an instance.
|
String |
toString() |
public static FixedRateComputation of(double rate)
rate - the fixed ratepublic 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 FixedRateComputation.Meta meta()
FixedRateComputation.public FixedRateComputation.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic double getRate()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.