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 ResolvedCapitalIndexedBondTrade
build()
Object
get(String propertyName)
ResolvedCapitalIndexedBondTrade.Builder
info(PortfolioItemInfo info)
Sets the additional information, defaulted to an empty instance.ResolvedCapitalIndexedBondTrade.Builder
product(ResolvedCapitalIndexedBond product)
Sets the resolved capital indexed bond product.ResolvedCapitalIndexedBondTrade.Builder
quantity(double quantity)
Sets the quantity, indicating the number of bond contracts in the trade.ResolvedCapitalIndexedBondTrade.Builder
set(String propertyName, Object newValue)
ResolvedCapitalIndexedBondTrade.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
ResolvedCapitalIndexedBondTrade.Builder
settlement(ResolvedCapitalIndexedBondSettlement 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<ResolvedCapitalIndexedBondTrade>
- Overrides:
get
in 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:
set
in interfaceorg.joda.beans.BeanBuilder<ResolvedCapitalIndexedBondTrade>
- Overrides:
set
in 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:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedCapitalIndexedBondTrade>
-
-