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