public final class ResolvedSwaption extends Object implements ResolvedProduct, org.joda.beans.ImmutableBean, Serializable
This is the resolved form of Swaption and is an input to the pricers.
Applications will typically create a ResolvedSwaption from a Swaption
using Swaption.resolve(ReferenceData).
A ResolvedSwaption is bound to data that changes over time, such as holiday calendars.
If the data changes, such as the addition of a new holiday, the resolved form will not be updated.
Care must be taken when placing the resolved form in a cache or persistence layer.
| Modifier and Type | Class and Description |
|---|---|
static class |
ResolvedSwaption.Builder
The bean-builder for
ResolvedSwaption. |
static class |
ResolvedSwaption.Meta
The meta-bean for
ResolvedSwaption. |
| Modifier and Type | Method and Description |
|---|---|
static ResolvedSwaption.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency of the swaption.
|
SwaptionExerciseDates |
getExerciseInfo()
Gets the exercise information.
|
ZonedDateTime |
getExpiry()
Gets the expiry date-time of the option.
|
LocalDate |
getExpiryDate()
Gets the expiry date of the option.
|
RateIndex |
getIndex()
Gets the index of the underlying swap.
|
LongShort |
getLongShort()
Gets whether the option is long or short.
|
SwaptionSettlement |
getSwaptionSettlement()
Gets settlement method.
|
ResolvedSwap |
getUnderlying()
Gets the underlying swap.
|
int |
hashCode() |
static ResolvedSwaption.Meta |
meta()
The meta-bean for
ResolvedSwaption. |
ResolvedSwaption.Meta |
metaBean() |
ResolvedSwaption.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public LocalDate getExpiryDate()
public Currency getCurrency()
This is the currency of the underlying swap, which is not allowed to be cross-currency.
public RateIndex getIndex()
public static ResolvedSwaption.Meta meta()
ResolvedSwaption.public static ResolvedSwaption.Builder builder()
public ResolvedSwaption.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic LongShort getLongShort()
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.
public SwaptionSettlement getSwaptionSettlement()
The settlement of the option is specified by SwaptionSettlement.
public SwaptionExerciseDates getExerciseInfo()
A swaption can have three different kinds of exercise - European, American and Bermudan. A European swaption has one exercise date, an American can exercise on any date, and a Bermudan can exercise on a fixed set of dates.
European swaptions will have matching information in this object, expiry date and swap start date. If this is not set in the builder, it will be defaulted to European from the expiry date and swap start date.
public ZonedDateTime getExpiry()
The option is European, and can only be exercised on the expiry date.
public ResolvedSwap getUnderlying()
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.
public ResolvedSwaption.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.