Class ResolvedCapitalIndexedBondTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCapitalIndexedBondTrade>
-
- com.opengamma.strata.product.bond.ResolvedCapitalIndexedBondTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedCapitalIndexedBondTrade>
- Enclosing class:
- ResolvedCapitalIndexedBondTrade
public static final class ResolvedCapitalIndexedBondTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCapitalIndexedBondTrade>
The bean-builder forResolvedCapitalIndexedBondTrade.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedCapitalIndexedBondTradebuild()Objectget(String propertyName)ResolvedCapitalIndexedBondTrade.Builderinfo(PortfolioItemInfo info)Sets the additional information, defaulted to an empty instance.ResolvedCapitalIndexedBondTrade.Builderproduct(ResolvedCapitalIndexedBond product)Sets the resolved capital indexed bond product.ResolvedCapitalIndexedBondTrade.Builderquantity(double quantity)Sets the quantity, indicating the number of bond contracts in the trade.ResolvedCapitalIndexedBondTrade.Builderset(String propertyName, Object newValue)ResolvedCapitalIndexedBondTrade.Builderset(org.joda.beans.MetaProperty<?> property, Object value)ResolvedCapitalIndexedBondTrade.Buildersettlement(ResolvedCapitalIndexedBondSettlement settlement)Sets the settlement details of the bond trade.StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ResolvedCapitalIndexedBondTrade>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCapitalIndexedBondTrade>
-
set
public ResolvedCapitalIndexedBondTrade.Builder set(String propertyName, Object newValue)
-
set
public ResolvedCapitalIndexedBondTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<ResolvedCapitalIndexedBondTrade>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCapitalIndexedBondTrade>
-
build
public ResolvedCapitalIndexedBondTrade build()
-
info
public ResolvedCapitalIndexedBondTrade.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 ResolvedCapitalIndexedBondTrade.Builder product(ResolvedCapitalIndexedBond product)
Sets the resolved capital indexed 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 ResolvedCapitalIndexedBondTrade.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 ResolvedCapitalIndexedBondTrade.Builder settlement(ResolvedCapitalIndexedBondSettlement 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:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCapitalIndexedBondTrade>
-
-