Class IborCapletFloorletPeriodAmounts
- java.lang.Object
-
- com.opengamma.strata.pricer.capfloor.IborCapletFloorletPeriodAmounts
-
- All Implemented Interfaces:
Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class IborCapletFloorletPeriodAmounts extends Object implements org.joda.beans.ImmutableBean, Serializable
A map of double values keyed by Ibor caplet/floorlet periods.The double values should represent the same metric.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIborCapletFloorletPeriodAmounts.BuilderThe bean-builder forIborCapletFloorletPeriodAmounts.static classIborCapletFloorletPeriodAmounts.MetaThe meta-bean forIborCapletFloorletPeriodAmounts.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IborCapletFloorletPeriodAmounts.Builderbuilder()Returns a builder used to create an instance of the bean.booleanequals(Object obj)Optional<Double>findAmount(IborCapletFloorletPeriod period)Gets a double amount for the provided Ibor caplet/floorlet.doublegetAmount(IborCapletFloorletPeriod period)Gets a double amount for the provided Ibor caplet/floorlet.ImmutableMap<IborCapletFloorletPeriod,Double>getAmounts()Gets the map of Ibor caplet/floorlet periods to the double amount.inthashCode()static IborCapletFloorletPeriodAmounts.Metameta()The meta-bean forIborCapletFloorletPeriodAmounts.IborCapletFloorletPeriodAmounts.MetametaBean()static IborCapletFloorletPeriodAmountsof(Map<IborCapletFloorletPeriod,Double> doubleMap)Obtains an instance of double amounts.IborCapletFloorletPeriodAmounts.BuildertoBuilder()Returns a builder that allows this bean to be mutated.StringtoString()
-
-
-
Method Detail
-
of
public static IborCapletFloorletPeriodAmounts of(Map<IborCapletFloorletPeriod,Double> doubleMap)
Obtains an instance of double amounts.- Parameters:
doubleMap- the map of doubles- Returns:
- the instance
-
findAmount
public Optional<Double> findAmount(IborCapletFloorletPeriod period)
Gets a double amount for the provided Ibor caplet/floorlet.- Parameters:
period- the ibor caplet/floorlet- Returns:
- the double amount, empty if missing
-
getAmount
public double getAmount(IborCapletFloorletPeriod period)
Gets a double amount for the provided Ibor caplet/floorlet.- Parameters:
period- the ibor caplet/floorlet- Returns:
- the double amount
- Throws:
IllegalArgumentException- if the period is missing
-
meta
public static IborCapletFloorletPeriodAmounts.Meta meta()
The meta-bean forIborCapletFloorletPeriodAmounts.- Returns:
- the meta-bean, not null
-
builder
public static IborCapletFloorletPeriodAmounts.Builder builder()
Returns a builder used to create an instance of the bean.- Returns:
- the builder, not null
-
metaBean
public IborCapletFloorletPeriodAmounts.Meta metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getAmounts
public ImmutableMap<IborCapletFloorletPeriod,Double> getAmounts()
Gets the map of Ibor caplet/floorlet periods to the double amount.- Returns:
- the value of the property, not null
-
toBuilder
public IborCapletFloorletPeriodAmounts.Builder toBuilder()
Returns a builder that allows this bean to be mutated.- Returns:
- the mutable builder, not null
-
-