public static final class ResolvedSwaption.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwaption>
ResolvedSwaption.| Modifier and Type | Method and Description |
|---|---|
ResolvedSwaption |
build() |
ResolvedSwaption.Builder |
expiry(ZonedDateTime expiry)
Sets the expiry date-time of the option.
|
Object |
get(String propertyName) |
ResolvedSwaption.Builder |
longShort(LongShort longShort)
Sets whether the option is long or short.
|
ResolvedSwaption.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ResolvedSwaption.Builder |
set(String propertyName,
Object newValue) |
ResolvedSwaption.Builder |
swaptionSettlement(SwaptionSettlement swaptionSettlement)
Sets settlement method.
|
String |
toString() |
ResolvedSwaption.Builder |
underlying(ResolvedSwap underlying)
Sets the underlying swap.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ResolvedSwaption>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwaption>public ResolvedSwaption.Builder set(String propertyName, Object newValue)
public ResolvedSwaption.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ResolvedSwaption>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwaption>public ResolvedSwaption build()
public ResolvedSwaption.Builder longShort(LongShort longShort)
Long indicates that the owner wants the option to be in the money at expiry. Short indicates that the owner wants the option to be out of the money at expiry.
longShort - the new value, not nullpublic ResolvedSwaption.Builder swaptionSettlement(SwaptionSettlement swaptionSettlement)
The settlement of the option is specified by SwaptionSettlement.
swaptionSettlement - the new value, not nullpublic ResolvedSwaption.Builder expiry(ZonedDateTime expiry)
The option is European, and can only be exercised on the expiry date.
expiry - the new value, not nullpublic ResolvedSwaption.Builder underlying(ResolvedSwap underlying)
At expiry, if the option is exercised, this swap will be entered into. The swap description is the swap as viewed by the party long the option.
underlying - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwaption>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.