public static final class ResolvedFxVanillaOption.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxVanillaOption>
ResolvedFxVanillaOption.| Modifier and Type | Method and Description |
|---|---|
ResolvedFxVanillaOption |
build() |
ResolvedFxVanillaOption.Builder |
expiry(ZonedDateTime expiry)
Sets the expiry date-time of the option.
|
Object |
get(String propertyName) |
ResolvedFxVanillaOption.Builder |
longShort(LongShort longShort)
Sets whether the option is long or short.
|
ResolvedFxVanillaOption.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ResolvedFxVanillaOption.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
ResolvedFxVanillaOption.Builder |
underlying(ResolvedFxSingle underlying)
Sets the underlying foreign exchange transaction.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ResolvedFxVanillaOption>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxVanillaOption>public ResolvedFxVanillaOption.Builder set(String propertyName, Object newValue)
public ResolvedFxVanillaOption.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ResolvedFxVanillaOption>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxVanillaOption>public ResolvedFxVanillaOption build()
public ResolvedFxVanillaOption.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 ResolvedFxVanillaOption.Builder expiry(ZonedDateTime expiry)
The option is European, and can only be exercised on the expiry date.
expiry - the new value, not nullpublic ResolvedFxVanillaOption.Builder underlying(ResolvedFxSingle underlying)
At expiry, if the option is in the money, this foreign exchange will occur. A call option permits the transaction as specified to occur. A put option permits the inverse transaction to occur.
underlying - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFxVanillaOption>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.