Class FixedRateComputation
- java.lang.Object
-
- com.opengamma.strata.product.rate.FixedRateComputation
-
- All Implemented Interfaces:
RateComputation
,Serializable
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class FixedRateComputation extends Object implements RateComputation, org.joda.beans.ImmutableBean, Serializable
Defines a known fixed rate of interest.An interest rate that is specified in the contract or has subsequently been determined.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FixedRateComputation.Meta
The meta-bean forFixedRateComputation
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 forFixedRateComputation
.FixedRateComputation.Meta
metaBean()
static FixedRateComputation
of(double rate)
Creates an instance.String
toString()
-
-
-
Method Detail
-
of
public static FixedRateComputation of(double rate)
Creates an instance.- Parameters:
rate
- the fixed rate- Returns:
- the fixed rate computation
-
collectIndices
public void collectIndices(ImmutableSet.Builder<Index> builder)
Description copied from interface:RateComputation
Collects all the indices referred to by this computation.A 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.
- Specified by:
collectIndices
in interfaceRateComputation
- Parameters:
builder
- the builder to use
-
meta
public static FixedRateComputation.Meta meta()
The meta-bean forFixedRateComputation
.- Returns:
- the meta-bean, not null
-
metaBean
public FixedRateComputation.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getRate
public double getRate()
Gets the fixed rate to be paid. A 5% rate will be expressed as 0.05.- Returns:
- the value of the property
-
-