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 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(String propertyName, Object newValue)
ResolvedFixedCouponBondOption.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
ResolvedFixedCouponBondOption.Builder
settlement(ResolvedFixedCouponBondSettlement settlement)
Sets the bond's settlement details.String
toString()
ResolvedFixedCouponBondOption.Builder
underlying(ResolvedFixedCouponBond underlying)
Sets the bond underlying the option.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ResolvedFixedCouponBondOption>
- Overrides:
get
in 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:
set
in interfaceorg.joda.beans.BeanBuilder<ResolvedFixedCouponBondOption>
- Overrides:
set
in 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:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondOption>
-
-