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 class
IborCapletFloorletPeriodAmounts.Builder
The bean-builder forIborCapletFloorletPeriodAmounts
.static class
IborCapletFloorletPeriodAmounts.Meta
The meta-bean forIborCapletFloorletPeriodAmounts
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IborCapletFloorletPeriodAmounts.Builder
builder()
Returns a builder used to create an instance of the bean.boolean
equals(Object obj)
Optional<Double>
findAmount(IborCapletFloorletPeriod period)
Gets a double amount for the provided Ibor caplet/floorlet.double
getAmount(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.int
hashCode()
static IborCapletFloorletPeriodAmounts.Meta
meta()
The meta-bean forIborCapletFloorletPeriodAmounts
.IborCapletFloorletPeriodAmounts.Meta
metaBean()
static IborCapletFloorletPeriodAmounts
of(Map<IborCapletFloorletPeriod,Double> doubleMap)
Obtains an instance of double amounts.IborCapletFloorletPeriodAmounts.Builder
toBuilder()
Returns a builder that allows this bean to be mutated.String
toString()
-
-
-
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:
metaBean
in 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
-
-