Class ResolvedBillTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBillTrade>
-
- com.opengamma.strata.product.bond.ResolvedBillTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedBillTrade>
- Enclosing class:
- ResolvedBillTrade
public static final class ResolvedBillTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBillTrade>
The bean-builder forResolvedBillTrade
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedBillTrade
build()
Object
get(String propertyName)
ResolvedBillTrade.Builder
info(PortfolioItemInfo info)
Sets the additional information, defaulted to an empty instance.ResolvedBillTrade.Builder
product(ResolvedBill product)
Sets the resolved bill product.ResolvedBillTrade.Builder
quantity(double quantity)
Sets the quantity, indicating the number of bond contracts in the trade.ResolvedBillTrade.Builder
set(String propertyName, Object newValue)
ResolvedBillTrade.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
ResolvedBillTrade.Builder
settlement(Payment settlement)
Sets the settlement details of the bill trade.String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ResolvedBillTrade>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBillTrade>
-
set
public ResolvedBillTrade.Builder set(String propertyName, Object newValue)
-
set
public ResolvedBillTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ResolvedBillTrade>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBillTrade>
-
build
public ResolvedBillTrade build()
-
info
public ResolvedBillTrade.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 ResolvedBillTrade.Builder product(ResolvedBill product)
Sets the resolved bill 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 ResolvedBillTrade.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 ResolvedBillTrade.Builder settlement(Payment settlement)
Sets the settlement details of the bill 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<ResolvedBillTrade>
-
-