Class ResolvedIborCapFloorLeg.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborCapFloorLeg>
-
- com.opengamma.strata.product.capfloor.ResolvedIborCapFloorLeg.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedIborCapFloorLeg>
- Enclosing class:
- ResolvedIborCapFloorLeg
public static final class ResolvedIborCapFloorLeg.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborCapFloorLeg>
The bean-builder forResolvedIborCapFloorLeg
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedIborCapFloorLeg
build()
ResolvedIborCapFloorLeg.Builder
capletFloorletPeriods(IborCapletFloorletPeriod... capletFloorletPeriods)
Sets thecapletFloorletPeriods
property in the builder from an array of objects.ResolvedIborCapFloorLeg.Builder
capletFloorletPeriods(List<IborCapletFloorletPeriod> capletFloorletPeriods)
Sets the periodic payments based on the successive observed values of an Ibor index.Object
get(String propertyName)
ResolvedIborCapFloorLeg.Builder
payReceive(PayReceive payReceive)
Sets whether the leg is pay or receive.ResolvedIborCapFloorLeg.Builder
set(String propertyName, Object newValue)
ResolvedIborCapFloorLeg.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ResolvedIborCapFloorLeg>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborCapFloorLeg>
-
set
public ResolvedIborCapFloorLeg.Builder set(String propertyName, Object newValue)
-
set
public ResolvedIborCapFloorLeg.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ResolvedIborCapFloorLeg>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborCapFloorLeg>
-
build
public ResolvedIborCapFloorLeg build()
-
payReceive
public ResolvedIborCapFloorLeg.Builder payReceive(PayReceive payReceive)
Sets whether the leg is pay or receive.A value of 'Pay' implies that the resulting amount is paid to the counterparty. A value of 'Receive' implies that the resulting amount is received from the counterparty.
The value of this flag should match the signs of the payment period notionals.
- Parameters:
payReceive
- the new value, not null- Returns:
- this, for chaining, not null
-
capletFloorletPeriods
public ResolvedIborCapFloorLeg.Builder capletFloorletPeriods(List<IborCapletFloorletPeriod> capletFloorletPeriods)
Sets the periodic payments based on the successive observed values of an Ibor index.Each payment period represents part of the life-time of the leg. In most cases, the periods do not overlap. However, since each payment period is essentially independent the data model allows overlapping periods.
- Parameters:
capletFloorletPeriods
- the new value, not empty- Returns:
- this, for chaining, not null
-
capletFloorletPeriods
public ResolvedIborCapFloorLeg.Builder capletFloorletPeriods(IborCapletFloorletPeriod... capletFloorletPeriods)
Sets thecapletFloorletPeriods
property in the builder from an array of objects.- Parameters:
capletFloorletPeriods
- the new value, not empty- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborCapFloorLeg>
-
-