public static final class ResolvedFixedCouponBondOption.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondOption>
ResolvedFixedCouponBondOption.| Modifier and Type | Method and Description |
|---|---|
ResolvedFixedCouponBondOption |
build() |
ResolvedFixedCouponBondOption.Builder |
expiry(ZonedDateTime expiry)
Sets the expiry date-time of the option.
|
Object |
get(String propertyName) |
ResolvedFixedCouponBondOption.Builder |
longShort(LongShort longShort)
Sets whether the option is long or short.
|
ResolvedFixedCouponBondOption.Builder |
quantity(double quantity)
Sets the quantity that was traded.
|
ResolvedFixedCouponBondOption.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ResolvedFixedCouponBondOption.Builder |
set(String propertyName,
Object newValue) |
ResolvedFixedCouponBondOption.Builder |
settlement(ResolvedFixedCouponBondSettlement settlement)
Sets the bond's settlement details.
|
String |
toString() |
ResolvedFixedCouponBondOption.Builder |
underlying(ResolvedFixedCouponBond underlying)
Sets the bond underlying the option.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ResolvedFixedCouponBondOption>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondOption>public ResolvedFixedCouponBondOption.Builder set(String propertyName, Object newValue)
public ResolvedFixedCouponBondOption.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ResolvedFixedCouponBondOption>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondOption>public ResolvedFixedCouponBondOption build()
public ResolvedFixedCouponBondOption.Builder longShort(LongShort longShort)
Long indicates that the owner has the right to exercise the option at expiry.
longShort - the new value, not nullpublic ResolvedFixedCouponBondOption.Builder underlying(ResolvedFixedCouponBond underlying)
underlying - the new value, not nullpublic ResolvedFixedCouponBondOption.Builder expiry(ZonedDateTime expiry)
The option is European, and can only be exercised on the expiry date.
expiry - the new value, not nullpublic ResolvedFixedCouponBondOption.Builder quantity(double quantity)
This will be positive if buying (call) and negative if selling (put).
quantity - the new valuepublic ResolvedFixedCouponBondOption.Builder settlement(ResolvedFixedCouponBondSettlement settlement)
settlement - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondOption>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.