public static final class NotionalSchedule.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<NotionalSchedule>
NotionalSchedule.| Modifier and Type | Method and Description |
|---|---|
NotionalSchedule.Builder |
amount(ValueSchedule amount)
Sets the notional amount.
|
NotionalSchedule |
build() |
NotionalSchedule.Builder |
currency(Currency currency)
Sets the currency of the swap leg associated with the notional.
|
NotionalSchedule.Builder |
finalExchange(boolean finalExchange)
Sets the flag indicating whether to exchange the final notional.
|
NotionalSchedule.Builder |
fxReset(FxResetCalculation fxReset)
Sets the FX reset definition, optional.
|
Object |
get(String propertyName) |
NotionalSchedule.Builder |
initialExchange(boolean initialExchange)
Sets the flag indicating whether to exchange the initial notional.
|
NotionalSchedule.Builder |
intermediateExchange(boolean intermediateExchange)
Sets the flag indicating whether to exchange the differences in the notional during the lifetime of the swap.
|
NotionalSchedule.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
NotionalSchedule.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<NotionalSchedule>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<NotionalSchedule>public NotionalSchedule.Builder set(String propertyName, Object newValue)
public NotionalSchedule.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<NotionalSchedule>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<NotionalSchedule>public NotionalSchedule build()
public NotionalSchedule.Builder currency(Currency currency)
This is the currency of the swap leg and the currency that interest calculation is made in.
The amounts of the notional are usually expressed in terms of this currency,
however they can be converted from amounts in a different currency.
See the optional fxReset property.
currency - the new value, not nullpublic NotionalSchedule.Builder fxReset(FxResetCalculation fxReset)
This property is used when the defined amount of the notional is specified in a currency other than the currency of the swap leg. When this occurs, the notional amount has to be converted using an FX rate to the swap leg currency. This conversion occurs at each payment period boundary and usually corresponds to an actual exchange of money between the counterparties.
When building the notional schedule, if an FxResetCalculation is present,
then at least one of the notional exchange flags should be set to true. If all notional
exchange flags are false then an IllegalArgumentException is thrown.
fxReset - the new valuepublic NotionalSchedule.Builder amount(ValueSchedule amount)
This defines the notional as an initial amount and a list of adjustments. The notional expressed here is intended to always be positive.
The notional is only allowed to change at payment period boundaries.
As such, the ValueSchedule steps are defined relative to the payment schedule.
amount - the new value, not nullpublic NotionalSchedule.Builder initialExchange(boolean initialExchange)
Setting this to true indicates that the notional is transferred at the start of the trade. This should typically be set to true in the case of an FX reset swap, or one with a varying notional.
initialExchange - the new valuepublic NotionalSchedule.Builder intermediateExchange(boolean intermediateExchange)
Setting this to true indicates that the notional is transferred when it changes during the trade. This should typically be set to true in the case of an FX reset swap, or one with a varying notional.
intermediateExchange - the new valuepublic NotionalSchedule.Builder finalExchange(boolean finalExchange)
Setting this to true indicates that the notional is transferred at the end of the trade. This should typically be set to true in the case of an FX reset swap, or one with a varying notional.
finalExchange - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<NotionalSchedule>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.