Package com.opengamma.strata.product.fra
Class ResolvedFraTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFraTrade>
-
- com.opengamma.strata.product.fra.ResolvedFraTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedFraTrade>
- Enclosing class:
- ResolvedFraTrade
public static final class ResolvedFraTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFraTrade>
The bean-builder forResolvedFraTrade
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedFraTrade
build()
Object
get(String propertyName)
ResolvedFraTrade.Builder
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.ResolvedFraTrade.Builder
product(ResolvedFra product)
Sets the resolved FRA product.ResolvedFraTrade.Builder
set(String propertyName, Object newValue)
ResolvedFraTrade.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<ResolvedFraTrade>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFraTrade>
-
set
public ResolvedFraTrade.Builder set(String propertyName, Object newValue)
-
set
public ResolvedFraTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ResolvedFraTrade>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFraTrade>
-
build
public ResolvedFraTrade build()
-
info
public ResolvedFraTrade.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 ResolvedFraTrade.Builder product(ResolvedFra product)
Sets the resolved FRA product.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<ResolvedFraTrade>
-
-