| Modifier and Type | Method and Description |
|---|---|
Swaption |
build() |
Swaption.Builder |
expiryDate(AdjustableDate expiryDate)
Sets the expiry date of the option.
|
Swaption.Builder |
expiryTime(LocalTime expiryTime)
Sets the expiry time of the option.
|
Swaption.Builder |
expiryZone(ZoneId expiryZone)
Sets the time-zone of the expiry time.
|
Object |
get(String propertyName) |
Swaption.Builder |
longShort(LongShort longShort)
Sets whether the option is long or short.
|
Swaption.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
Swaption.Builder |
set(String propertyName,
Object newValue) |
Swaption.Builder |
swaptionSettlement(SwaptionSettlement swaptionSettlement)
Sets settlement method.
|
String |
toString() |
Swaption.Builder |
underlying(Swap underlying)
Sets the underlying swap.
|
public Swaption.Builder set(String propertyName, Object newValue)
public Swaption.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
public Swaption build()
public Swaption.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 Swaption.Builder swaptionSettlement(SwaptionSettlement swaptionSettlement)
The settlement of the option is specified by SwaptionSettlement.
swaptionSettlement - the new value, not nullpublic Swaption.Builder expiryDate(AdjustableDate expiryDate)
The option is European, and can only be exercised on the expiry date.
This date is typically set to be a valid business day.
However, the businessDayAdjustment property may be set to provide a rule for adjustment.
expiryDate - the new value, not nullpublic Swaption.Builder expiryTime(LocalTime expiryTime)
The expiry time is related to the expiry date and time-zone.
expiryTime - the new value, not nullpublic Swaption.Builder expiryZone(ZoneId expiryZone)
The expiry time-zone is related to the expiry date and time.
expiryZone - the new value, not nullpublic Swaption.Builder underlying(Swap 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 nullCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.