Class Payment.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<Payment>
-
- com.opengamma.strata.basics.currency.Payment.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Payment
build()
Payment.Builder
date(LocalDate date)
Sets the date that the payment is made.Object
get(String propertyName)
Payment.Builder
set(String propertyName, Object newValue)
Payment.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
Payment.Builder
value(CurrencyAmount value)
Sets the amount of the payment.
-
-
-
Method Detail
-
set
public Payment.Builder set(String propertyName, Object newValue)
-
set
public Payment.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
-
build
public Payment build()
-
value
public Payment.Builder value(CurrencyAmount value)
Sets the amount of the payment.The amount is signed. A negative value indicates the amount is to be paid while a positive value indicates the amount is received.
- Parameters:
value
- the new value, not null- Returns:
- this, for chaining, not null
-
date
public Payment.Builder date(LocalDate date)
Sets the date that the payment is made.This date should normally be a valid business day.
- Parameters:
date
- the new value, not null- Returns:
- this, for chaining, not null
-
-