Class Swap.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<Swap>
-
- com.opengamma.strata.product.swap.Swap.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Swapbuild()Objectget(String propertyName)Swap.Builderlegs(SwapLeg... legs)Sets thelegsproperty in the builder from an array of objects.Swap.Builderlegs(List<? extends SwapLeg> legs)Sets the legs of the swap.Swap.Builderset(String propertyName, Object newValue)Swap.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
set
public Swap.Builder set(String propertyName, Object newValue)
-
set
public Swap.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
-
build
public Swap build()
-
legs
public Swap.Builder legs(List<? extends SwapLeg> 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 Swap.Builder legs(SwapLeg... legs)
Sets thelegsproperty in the builder from an array of objects.- Parameters:
legs- the new value, not empty- Returns:
- this, for chaining, not null
-
-