Class BulletPayment.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BulletPayment>
-
- com.opengamma.strata.product.payment.BulletPayment.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<BulletPayment>
- Enclosing class:
- BulletPayment
public static final class BulletPayment.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BulletPayment>
The bean-builder forBulletPayment
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BulletPayment
build()
BulletPayment.Builder
date(AdjustableDate date)
Sets the date that the payment is made.Object
get(String propertyName)
BulletPayment.Builder
payReceive(PayReceive payReceive)
Sets whether the payment is to be paid or received.BulletPayment.Builder
set(String propertyName, Object newValue)
BulletPayment.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
BulletPayment.Builder
value(CurrencyAmount value)
Sets the amount of the payment.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<BulletPayment>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BulletPayment>
-
set
public BulletPayment.Builder set(String propertyName, Object newValue)
-
set
public BulletPayment.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<BulletPayment>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BulletPayment>
-
build
public BulletPayment build()
-
payReceive
public BulletPayment.Builder payReceive(PayReceive payReceive)
Sets whether the payment is to be paid or received.A value of 'Pay' implies that the amount is paid to the counterparty. A value of 'Receive' implies that the amount is received from the counterparty.
- Parameters:
payReceive
- the new value, not null- Returns:
- this, for chaining, not null
-
value
public BulletPayment.Builder value(CurrencyAmount value)
Sets the amount of the payment.The amount is unsigned, with the direction implied by
payReceive
.- Parameters:
value
- the new value, not null- Returns:
- this, for chaining, not null
-
date
public BulletPayment.Builder date(AdjustableDate 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
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BulletPayment>
-
-