Class ResolvedSwap.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwap>
-
- com.opengamma.strata.product.swap.ResolvedSwap.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedSwap>
- Enclosing class:
- ResolvedSwap
public static final class ResolvedSwap.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwap>
The bean-builder forResolvedSwap
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedSwap
build()
Object
get(String propertyName)
ResolvedSwap.Builder
legs(ResolvedSwapLeg... legs)
Sets thelegs
property in the builder from an array of objects.ResolvedSwap.Builder
legs(List<ResolvedSwapLeg> legs)
Sets the legs of the swap.ResolvedSwap.Builder
set(String propertyName, Object newValue)
ResolvedSwap.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<ResolvedSwap>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwap>
-
set
public ResolvedSwap.Builder set(String propertyName, Object newValue)
-
set
public ResolvedSwap.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ResolvedSwap>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwap>
-
build
public ResolvedSwap build()
-
legs
public ResolvedSwap.Builder legs(List<ResolvedSwapLeg> legs)
Sets the legs of the swap.A swap consists of one or more legs. The legs of a swap are essentially unordered, however it is more efficient and closer to user expectation to treat them as being ordered.
- Parameters:
legs
- the new value, not empty- Returns:
- this, for chaining, not null
-
legs
public ResolvedSwap.Builder legs(ResolvedSwapLeg... legs)
Sets thelegs
property in the builder from an array of objects.- Parameters:
legs
- the new value, not empty- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedSwap>
-
-