Class ResolvedFixedCouponBondTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>
-
- com.opengamma.strata.product.bond.ResolvedFixedCouponBondTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedFixedCouponBondTrade>
- Enclosing class:
- ResolvedFixedCouponBondTrade
public static final class ResolvedFixedCouponBondTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>
The bean-builder forResolvedFixedCouponBondTrade
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedFixedCouponBondTrade
build()
Object
get(String propertyName)
ResolvedFixedCouponBondTrade.Builder
info(PortfolioItemInfo info)
Sets the additional information, defaulted to an empty instance.ResolvedFixedCouponBondTrade.Builder
product(ResolvedFixedCouponBond product)
Sets the resolved fixed coupon bond product.ResolvedFixedCouponBondTrade.Builder
quantity(double quantity)
Sets the quantity, indicating the number of bond contracts in the trade.ResolvedFixedCouponBondTrade.Builder
set(String propertyName, Object newValue)
ResolvedFixedCouponBondTrade.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
ResolvedFixedCouponBondTrade.Builder
settlement(ResolvedFixedCouponBondSettlement settlement)
Sets the settlement details of the bond trade.String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ResolvedFixedCouponBondTrade>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>
-
set
public ResolvedFixedCouponBondTrade.Builder set(String propertyName, Object newValue)
-
set
public ResolvedFixedCouponBondTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ResolvedFixedCouponBondTrade>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>
-
build
public ResolvedFixedCouponBondTrade build()
-
info
public ResolvedFixedCouponBondTrade.Builder info(PortfolioItemInfo info)
Sets the additional information, defaulted to an empty instance.This allows additional information to be attached.
- Parameters:
info
- the new value, not null- Returns:
- this, for chaining, not null
-
product
public ResolvedFixedCouponBondTrade.Builder product(ResolvedFixedCouponBond product)
Sets the resolved fixed coupon bond product.The product captures the contracted financial details of the trade.
- Parameters:
product
- the new value, not null- Returns:
- this, for chaining, not null
-
quantity
public ResolvedFixedCouponBondTrade.Builder quantity(double quantity)
Sets the quantity, indicating the number of bond contracts in the trade.This will be positive if buying and negative if selling.
- Parameters:
quantity
- the new value- Returns:
- this, for chaining, not null
-
settlement
public ResolvedFixedCouponBondTrade.Builder settlement(ResolvedFixedCouponBondSettlement settlement)
Sets the settlement details of the bond trade.When this class is used to represent a position, this property will be empty.
- Parameters:
settlement
- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>
-
-