public static final class SwaptionTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionTrade>
SwaptionTrade.| Modifier and Type | Method and Description |
|---|---|
SwaptionTrade |
build() |
Object |
get(String propertyName) |
SwaptionTrade.Builder |
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.
|
SwaptionTrade.Builder |
premium(AdjustablePayment premium)
Sets the premium of the swaption.
|
SwaptionTrade.Builder |
product(Swaption product)
Sets the swaption product that was agreed when the trade occurred.
|
SwaptionTrade.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
SwaptionTrade.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<SwaptionTrade>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionTrade>public SwaptionTrade.Builder set(String propertyName, Object newValue)
public SwaptionTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<SwaptionTrade>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionTrade>public SwaptionTrade build()
public SwaptionTrade.Builder info(TradeInfo info)
This allows additional information to be attached to the trade.
info - the new value, not nullpublic SwaptionTrade.Builder product(Swaption product)
The product captures the contracted financial details of the trade.
product - the new value, not nullpublic SwaptionTrade.Builder premium(AdjustablePayment premium)
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.
premium - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionTrade>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.