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 KnownAmountBondPaymentPeriodbuild()KnownAmountBondPaymentPeriod.BuilderendDate(LocalDate endDate)Sets the end date of the payment period.Objectget(String propertyName)KnownAmountBondPaymentPeriod.Builderpayment(Payment payment)Sets the payment.KnownAmountBondPaymentPeriod.Builderset(String propertyName, Object newValue)KnownAmountBondPaymentPeriod.Builderset(org.joda.beans.MetaProperty<?> property, Object value)KnownAmountBondPaymentPeriod.BuilderstartDate(LocalDate startDate)Sets the start date of the payment period.StringtoString()KnownAmountBondPaymentPeriod.BuilderunadjustedEndDate(LocalDate unadjustedEndDate)Sets the unadjusted end date.KnownAmountBondPaymentPeriod.BuilderunadjustedStartDate(LocalDate unadjustedStartDate)Sets the unadjusted start date. 
 - 
 
- 
- 
Method Detail
- 
get
public Object get(String propertyName)
- Specified by:
 getin interfaceorg.joda.beans.BeanBuilder<KnownAmountBondPaymentPeriod>- Overrides:
 getin 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:
 setin interfaceorg.joda.beans.BeanBuilder<KnownAmountBondPaymentPeriod>- Overrides:
 setin 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:
 toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountBondPaymentPeriod>
 
 - 
 
 -