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 |
exerciseInfo(SwaptionExerciseDates exerciseInfo)
Sets the exercise information.
|
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 exerciseInfo(SwaptionExerciseDates exerciseInfo)
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.
exerciseInfo
- 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.