public static final class SwapLegAmount.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwapLegAmount>
SwapLegAmount.| Modifier and Type | Method and Description |
|---|---|
SwapLegAmount.Builder |
amount(CurrencyAmount amount)
Sets the amount associated with the leg.
|
SwapLegAmount |
build() |
SwapLegAmount.Builder |
currency(Currency currency)
Sets the currency of the leg.
|
Object |
get(String propertyName) |
SwapLegAmount.Builder |
payReceive(PayReceive payReceive)
Sets whether the leg is pay or receive.
|
SwapLegAmount.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
SwapLegAmount.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
SwapLegAmount.Builder |
type(SwapLegType type)
Sets the type of the leg, such as Fixed or Ibor.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<SwapLegAmount>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwapLegAmount>public SwapLegAmount.Builder set(String propertyName, Object newValue)
public SwapLegAmount.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<SwapLegAmount>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwapLegAmount>public SwapLegAmount build()
public SwapLegAmount.Builder amount(CurrencyAmount amount)
amount - the new value, not nullpublic SwapLegAmount.Builder payReceive(PayReceive payReceive)
payReceive - the new value, not nullpublic SwapLegAmount.Builder type(SwapLegType type)
type - the new value, not nullpublic SwapLegAmount.Builder currency(Currency currency)
currency - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwapLegAmount>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.