## Class FxNdf.Builder

• All Implemented Interfaces:
BeanBuilder<FxNdf>
Enclosing class:
FxNdf

public static final class FxNdf.Builder
extends DirectFieldsBeanBuilder<FxNdf>
The bean-builder for FxNdf.
• ### Method Summary

All Methods
Modifier and Type Method Description
FxNdf.Builder agreedFxRate​(FxRate agreedFxRate)
Sets the FX rate agreed for the value date at the inception of the trade.
FxNdf build()
java.lang.Object get​(java.lang.String propertyName)
FxNdf.Builder index​(FxIndex index)
Sets the index defining the FX rate to observe on the fixing date.
FxNdf.Builder paymentDate​(java.time.LocalDate paymentDate)
Sets the date that the forward settles.
FxNdf.Builder set​(java.lang.String propertyName, java.lang.Object newValue)
FxNdf.Builder set​(MetaProperty<?> property, java.lang.Object value)
FxNdf.Builder settlementCurrencyNotional​(CurrencyAmount settlementCurrencyNotional)
Sets the notional amount in the settlement currency, positive if receiving, negative if paying.
java.lang.String toString()
• ### Methods inherited from class org.joda.beans.impl.direct.DirectFieldsBeanBuilder

get
• ### Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
• ### Method Detail

• #### get

public java.lang.Object get​(java.lang.String propertyName)
Specified by:
get in interface BeanBuilder<FxNdf>
Overrides:
get in class DirectFieldsBeanBuilder<FxNdf>
• #### set

public FxNdf.Builder set​(java.lang.String propertyName,
java.lang.Object newValue)
• #### set

public FxNdf.Builder set​(MetaProperty<?> property,
java.lang.Object value)
Specified by:
set in interface BeanBuilder<FxNdf>
Overrides:
set in class DirectFieldsBeanBuilder<FxNdf>
• #### build

public FxNdf build()
• #### settlementCurrencyNotional

public FxNdf.Builder settlementCurrencyNotional​(CurrencyAmount settlementCurrencyNotional)
Sets the notional amount in the settlement currency, positive if receiving, negative if paying.

The amount is signed. A positive amount indicates the payment is to be received. A negative amount indicates the payment is to be paid.

This must be specified in one of the two currencies of the forward.

Parameters:
settlementCurrencyNotional - the new value, not null
Returns:
this, for chaining, not null
• #### agreedFxRate

public FxNdf.Builder agreedFxRate​(FxRate agreedFxRate)
Sets the FX rate agreed for the value date at the inception of the trade.

The settlement amount is based on the difference between this rate and the rate observed on the fixing date using the index.

The forward is between the two currencies defined by the rate.

Parameters:
agreedFxRate - the new value, not null
Returns:
this, for chaining, not null
• #### index

public FxNdf.Builder index​(FxIndex index)
Sets the index defining the FX rate to observe on the fixing date.

The index is used to settle the trade by providing the actual FX rate on the fixing date. The value of the trade is based on the difference between the actual rate and the agreed rate.

The forward is between the two currencies defined by the index.

Parameters:
index - the new value, not null
Returns:
this, for chaining, not null
• #### paymentDate

public FxNdf.Builder paymentDate​(java.time.LocalDate paymentDate)
Sets the date that the forward settles.

On this date, the settlement amount will be exchanged. This date should be a valid business day.

Parameters:
paymentDate - the new value, not null
Returns:
this, for chaining, not null
• #### toString

public java.lang.String toString()
Overrides:
toString in class DirectFieldsBeanBuilder<FxNdf>