public static final class FxVanillaOption.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxVanillaOption>
FxVanillaOption.| Modifier and Type | Method and Description |
|---|---|
FxVanillaOption |
build() |
FxVanillaOption.Builder |
expiryDate(LocalDate expiryDate)
Sets the expiry date of the option.
|
FxVanillaOption.Builder |
expiryTime(LocalTime expiryTime)
Sets the expiry time of the option.
|
FxVanillaOption.Builder |
expiryZone(ZoneId expiryZone)
Sets the time-zone of the expiry time.
|
Object |
get(String propertyName) |
FxVanillaOption.Builder |
longShort(LongShort longShort)
Sets whether the option is long or short.
|
FxVanillaOption.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
FxVanillaOption.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
FxVanillaOption.Builder |
underlying(FxSingle underlying)
Sets the underlying foreign exchange transaction.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<FxVanillaOption>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxVanillaOption>public FxVanillaOption.Builder set(String propertyName, Object newValue)
public FxVanillaOption.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<FxVanillaOption>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxVanillaOption>public FxVanillaOption build()
public FxVanillaOption.Builder longShort(LongShort longShort)
At expiry, the long party will have the option to enter in this transaction; the short party will, at the option of the long party, potentially enter into the inverse transaction.
longShort - the new value, not nullpublic FxVanillaOption.Builder expiryDate(LocalDate expiryDate)
The option is European, and can only be exercised on the expiry date.
expiryDate - the new value, not nullpublic FxVanillaOption.Builder expiryTime(LocalTime expiryTime)
The expiry time is related to the expiry date and time-zone.
expiryTime - the new value, not nullpublic FxVanillaOption.Builder expiryZone(ZoneId expiryZone)
The expiry time-zone is related to the expiry date and time.
expiryZone - the new value, not nullpublic FxVanillaOption.Builder underlying(FxSingle underlying)
At expiry, if the option is in the money, this foreign exchange will occur.
underlying - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxVanillaOption>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.