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 BulletPaymentbuild()BulletPayment.Builderdate(AdjustableDate date)Sets the date that the payment is made.Objectget(String propertyName)BulletPayment.BuilderpayReceive(PayReceive payReceive)Sets whether the payment is to be paid or received.BulletPayment.Builderset(String propertyName, Object newValue)BulletPayment.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()BulletPayment.Buildervalue(CurrencyAmount value)Sets the amount of the payment.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<BulletPayment>- Overrides:
getin 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:
setin interfaceorg.joda.beans.BeanBuilder<BulletPayment>- Overrides:
setin 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:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<BulletPayment>
-
-