Class ResolvedIborCapFloorTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborCapFloorTrade>
-
- com.opengamma.strata.product.capfloor.ResolvedIborCapFloorTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedIborCapFloorTrade>
- Enclosing class:
- ResolvedIborCapFloorTrade
public static final class ResolvedIborCapFloorTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborCapFloorTrade>
The bean-builder forResolvedIborCapFloorTrade
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedIborCapFloorTrade
build()
Object
get(String propertyName)
ResolvedIborCapFloorTrade.Builder
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.ResolvedIborCapFloorTrade.Builder
premium(Payment premium)
Sets the optional premium of the product.ResolvedIborCapFloorTrade.Builder
product(ResolvedIborCapFloor product)
Sets the resolved Ibor cap/floor product.ResolvedIborCapFloorTrade.Builder
set(String propertyName, Object newValue)
ResolvedIborCapFloorTrade.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<ResolvedIborCapFloorTrade>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborCapFloorTrade>
-
set
public ResolvedIborCapFloorTrade.Builder set(String propertyName, Object newValue)
-
set
public ResolvedIborCapFloorTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ResolvedIborCapFloorTrade>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborCapFloorTrade>
-
build
public ResolvedIborCapFloorTrade build()
-
info
public ResolvedIborCapFloorTrade.Builder info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.This allows additional information to be attached to the trade.
- Parameters:
info
- the new value, not null- Returns:
- this, for chaining, not null
-
product
public ResolvedIborCapFloorTrade.Builder product(ResolvedIborCapFloor product)
Sets the resolved Ibor cap/floor product.The product captures the contracted financial details of the trade.
- Parameters:
product
- the new value, not null- Returns:
- this, for chaining, not null
-
premium
public ResolvedIborCapFloorTrade.Builder premium(Payment premium)
Sets the optional premium of the product.For most Ibor cap/floor products, a premium is paid upfront. This typically occurs instead of periodic payments based on fixed or Ibor rates over the lifetime of the product.
The premium sign must be compatible with the product Pay/Receive flag.
- Parameters:
premium
- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborCapFloorTrade>
-
-