Class TermDepositTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<TermDepositTrade>
-
- com.opengamma.strata.product.deposit.TermDepositTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<TermDepositTrade>
- Enclosing class:
- TermDepositTrade
public static final class TermDepositTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<TermDepositTrade>
The bean-builder forTermDepositTrade
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TermDepositTrade
build()
Object
get(String propertyName)
TermDepositTrade.Builder
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.TermDepositTrade.Builder
product(TermDeposit product)
Sets the term deposit product that was agreed when the trade occurred.TermDepositTrade.Builder
set(String propertyName, Object newValue)
TermDepositTrade.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<TermDepositTrade>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<TermDepositTrade>
-
set
public TermDepositTrade.Builder set(String propertyName, Object newValue)
-
set
public TermDepositTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<TermDepositTrade>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<TermDepositTrade>
-
build
public TermDepositTrade build()
-
info
public TermDepositTrade.Builder info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.This allows additional information to be attached to the trade.
- Parameters:
info
- the new value, not null- Returns:
- this, for chaining, not null
-
product
public TermDepositTrade.Builder product(TermDeposit product)
Sets the term deposit product that was agreed when the trade occurred.The product captures the contracted financial details of the trade.
- Parameters:
product
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<TermDepositTrade>
-
-