Modifier and Type | Method and Description |
---|---|
Swap |
build() |
Object |
get(String propertyName) |
Swap.Builder |
legs(List<? extends SwapLeg> legs)
Sets the legs of the swap.
|
Swap.Builder |
legs(SwapLeg... legs)
Sets the
legs property in the builder
from an array of objects. |
Swap.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
Swap.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Swap.Builder set(String propertyName, Object newValue)
public Swap.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
public Swap build()
public Swap.Builder legs(List<? extends SwapLeg> legs)
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.
legs
- the new value, not emptypublic Swap.Builder legs(SwapLeg... legs)
legs
property in the builder
from an array of objects.legs
- the new value, not emptyCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.