Class ResolvedFixedCouponBondOption.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondOption>
-
- com.opengamma.strata.product.bond.ResolvedFixedCouponBondOption.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedFixedCouponBondOption>
- Enclosing class:
- ResolvedFixedCouponBondOption
public static final class ResolvedFixedCouponBondOption.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondOption>
The bean-builder forResolvedFixedCouponBondOption.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedFixedCouponBondOptionbuild()ResolvedFixedCouponBondOption.Builderexpiry(ZonedDateTime expiry)Sets the expiry date-time of the option.Objectget(String propertyName)ResolvedFixedCouponBondOption.BuilderlongShort(LongShort longShort)Sets whether the option is long or short.ResolvedFixedCouponBondOption.Builderquantity(double quantity)Sets the quantity that was traded.ResolvedFixedCouponBondOption.Builderset(String propertyName, Object newValue)ResolvedFixedCouponBondOption.Builderset(org.joda.beans.MetaProperty<?> property, Object value)ResolvedFixedCouponBondOption.Buildersettlement(ResolvedFixedCouponBondSettlement settlement)Sets the bond's settlement details.StringtoString()ResolvedFixedCouponBondOption.Builderunderlying(ResolvedFixedCouponBond underlying)Sets the bond underlying the option.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ResolvedFixedCouponBondOption>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondOption>
-
set
public ResolvedFixedCouponBondOption.Builder set(String propertyName, Object newValue)
-
set
public ResolvedFixedCouponBondOption.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<ResolvedFixedCouponBondOption>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondOption>
-
build
public ResolvedFixedCouponBondOption build()
-
longShort
public ResolvedFixedCouponBondOption.Builder longShort(LongShort longShort)
Sets whether the option is long or short.Long indicates that the owner has the right to exercise the option at expiry.
- Parameters:
longShort- the new value, not null- Returns:
- this, for chaining, not null
-
underlying
public ResolvedFixedCouponBondOption.Builder underlying(ResolvedFixedCouponBond underlying)
Sets the bond underlying the option.- Parameters:
underlying- the new value, not null- Returns:
- this, for chaining, not null
-
expiry
public ResolvedFixedCouponBondOption.Builder expiry(ZonedDateTime expiry)
Sets the expiry date-time of the option.The option is European, and can only be exercised on the expiry date.
- Parameters:
expiry- the new value, not null- Returns:
- this, for chaining, not null
-
quantity
public ResolvedFixedCouponBondOption.Builder quantity(double quantity)
Sets the quantity that was traded.This will be positive if buying (call) and negative if selling (put).
- Parameters:
quantity- the new value- Returns:
- this, for chaining, not null
-
settlement
public ResolvedFixedCouponBondOption.Builder settlement(ResolvedFixedCouponBondSettlement settlement)
Sets the bond's settlement details.- Parameters:
settlement- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondOption>
-
-