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 Swap
build()
Object
get(String propertyName)
Swap.Builder
legs(SwapLeg... legs)
Sets thelegs
property in the builder from an array of objects.Swap.Builder
legs(List<? extends SwapLeg> legs)
Sets the legs of the swap.Swap.Builder
set(String propertyName, Object newValue)
Swap.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
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 thelegs
property in the builder from an array of objects.- Parameters:
legs
- the new value, not empty- Returns:
- this, for chaining, not null
-
-