public static final class Payment.Builder extends DirectFieldsBeanBuilder<Payment>
Payment
.Modifier and Type | Method and Description |
---|---|
Payment |
build() |
Payment.Builder |
date(LocalDate date)
Sets the date that the payment is made.
|
Object |
get(String propertyName) |
Payment.Builder |
set(MetaProperty<?> property,
Object value) |
Payment.Builder |
set(String propertyName,
Object newValue) |
Payment.Builder |
setAll(Map<String,? extends Object> propertyValueMap)
Deprecated.
Loop in application code
|
Payment.Builder |
setString(MetaProperty<?> property,
String value)
Deprecated.
Use Joda-Convert in application code
|
Payment.Builder |
setString(String propertyName,
String value)
Deprecated.
Use Joda-Convert in application code
|
String |
toString() |
Payment.Builder |
value(CurrencyAmount value)
Sets the amount of the payment.
|
get
public Object get(String propertyName)
get
in interface BeanBuilder<Payment>
get
in class DirectFieldsBeanBuilder<Payment>
public Payment.Builder set(String propertyName, Object newValue)
public Payment.Builder set(MetaProperty<?> property, Object value)
set
in interface BeanBuilder<Payment>
set
in class DirectFieldsBeanBuilder<Payment>
@Deprecated public Payment.Builder setString(String propertyName, String value)
@Deprecated public Payment.Builder setString(MetaProperty<?> property, String value)
setString
in interface BeanBuilder<Payment>
setString
in class DirectFieldsBeanBuilder<Payment>
@Deprecated public Payment.Builder setAll(Map<String,? extends Object> propertyValueMap)
setAll
in interface BeanBuilder<Payment>
setAll
in class DirectFieldsBeanBuilder<Payment>
public Payment build()
public Payment.Builder value(CurrencyAmount value)
The amount is signed. A negative value indicates the amount is to be paid while a positive value indicates the amount is received.
value
- the new value, not nullpublic Payment.Builder date(LocalDate date)
This date should normally be a valid business day.
date
- the new value, not nullpublic String toString()
toString
in class DirectFieldsBeanBuilder<Payment>
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.