Class ResolvedSwaptionTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwaptionTrade>
-
- com.opengamma.strata.product.swaption.ResolvedSwaptionTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedSwaptionTrade>
- Enclosing class:
- ResolvedSwaptionTrade
public static final class ResolvedSwaptionTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwaptionTrade>
The bean-builder forResolvedSwaptionTrade.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedSwaptionTradebuild()Objectget(String propertyName)ResolvedSwaptionTrade.Builderinfo(TradeInfo info)Sets the additional trade information, defaulted to an empty instance.ResolvedSwaptionTrade.Builderpremium(Payment premium)Sets the premium of the swaption.ResolvedSwaptionTrade.Builderproduct(ResolvedSwaption product)Sets the resolved Swaption product.ResolvedSwaptionTrade.Builderset(String propertyName, Object newValue)ResolvedSwaptionTrade.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ResolvedSwaptionTrade>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwaptionTrade>
-
set
public ResolvedSwaptionTrade.Builder set(String propertyName, Object newValue)
-
set
public ResolvedSwaptionTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<ResolvedSwaptionTrade>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwaptionTrade>
-
build
public ResolvedSwaptionTrade build()
-
info
public ResolvedSwaptionTrade.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 ResolvedSwaptionTrade.Builder product(ResolvedSwaption product)
Sets the resolved Swaption 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 ResolvedSwaptionTrade.Builder premium(Payment premium)
Sets the premium of the swaption.The premium sign should be compatible with the product Long/Short flag. This means that the premium is negative for long and positive for short.
- Parameters:
premium- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwaptionTrade>
-
-