Class KnownAmountBondPaymentPeriod.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountBondPaymentPeriod>
-
- com.opengamma.strata.product.bond.KnownAmountBondPaymentPeriod.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<KnownAmountBondPaymentPeriod>
- Enclosing class:
- KnownAmountBondPaymentPeriod
public static final class KnownAmountBondPaymentPeriod.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountBondPaymentPeriod>
The bean-builder forKnownAmountBondPaymentPeriod
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KnownAmountBondPaymentPeriod
build()
KnownAmountBondPaymentPeriod.Builder
endDate(LocalDate endDate)
Sets the end date of the payment period.Object
get(String propertyName)
KnownAmountBondPaymentPeriod.Builder
payment(Payment payment)
Sets the payment.KnownAmountBondPaymentPeriod.Builder
set(String propertyName, Object newValue)
KnownAmountBondPaymentPeriod.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
KnownAmountBondPaymentPeriod.Builder
startDate(LocalDate startDate)
Sets the start date of the payment period.String
toString()
KnownAmountBondPaymentPeriod.Builder
unadjustedEndDate(LocalDate unadjustedEndDate)
Sets the unadjusted end date.KnownAmountBondPaymentPeriod.Builder
unadjustedStartDate(LocalDate unadjustedStartDate)
Sets the unadjusted start date.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<KnownAmountBondPaymentPeriod>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountBondPaymentPeriod>
-
set
public KnownAmountBondPaymentPeriod.Builder set(String propertyName, Object newValue)
-
set
public KnownAmountBondPaymentPeriod.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<KnownAmountBondPaymentPeriod>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountBondPaymentPeriod>
-
build
public KnownAmountBondPaymentPeriod build()
-
payment
public KnownAmountBondPaymentPeriod.Builder payment(Payment payment)
Sets the payment.This includes the payment date and amount. If the schedule adjusts for business days, then the date is the adjusted date.
- Parameters:
payment
- the new value, not null- Returns:
- this, for chaining, not null
-
startDate
public KnownAmountBondPaymentPeriod.Builder startDate(LocalDate startDate)
Sets the start date of the payment period.This is the first date in the period. If the schedule adjusts for business days, then this is the adjusted date.
- Parameters:
startDate
- the new value, not null- Returns:
- this, for chaining, not null
-
endDate
public KnownAmountBondPaymentPeriod.Builder endDate(LocalDate endDate)
Sets the end date of the payment period.This is the last date in the period. If the schedule adjusts for business days, then this is the adjusted date.
- Parameters:
endDate
- the new value, not null- Returns:
- this, for chaining, not null
-
unadjustedStartDate
public KnownAmountBondPaymentPeriod.Builder unadjustedStartDate(LocalDate unadjustedStartDate)
Sets the unadjusted start date.The start date before any business day adjustment is applied.
When building, this will default to the start date if not specified.
- Parameters:
unadjustedStartDate
- the new value, not null- Returns:
- this, for chaining, not null
-
unadjustedEndDate
public KnownAmountBondPaymentPeriod.Builder unadjustedEndDate(LocalDate unadjustedEndDate)
Sets the unadjusted end date.The end date before any business day adjustment is applied.
When building, this will default to the end date if not specified.
- Parameters:
unadjustedEndDate
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountBondPaymentPeriod>
-
-