Class KnownAmountSwapPaymentPeriod.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountSwapPaymentPeriod>
-
- com.opengamma.strata.product.swap.KnownAmountSwapPaymentPeriod.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<KnownAmountSwapPaymentPeriod>
- Enclosing class:
- KnownAmountSwapPaymentPeriod
public static final class KnownAmountSwapPaymentPeriod.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountSwapPaymentPeriod>
The bean-builder forKnownAmountSwapPaymentPeriod
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KnownAmountSwapPaymentPeriod
build()
KnownAmountSwapPaymentPeriod.Builder
endDate(LocalDate endDate)
Sets the end date of the payment period.Object
get(String propertyName)
KnownAmountSwapPaymentPeriod.Builder
payment(Payment payment)
Sets the payment.KnownAmountSwapPaymentPeriod.Builder
set(String propertyName, Object newValue)
KnownAmountSwapPaymentPeriod.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
KnownAmountSwapPaymentPeriod.Builder
startDate(LocalDate startDate)
Sets the start date of the payment period.String
toString()
KnownAmountSwapPaymentPeriod.Builder
unadjustedEndDate(LocalDate unadjustedEndDate)
Sets the unadjusted end date.KnownAmountSwapPaymentPeriod.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<KnownAmountSwapPaymentPeriod>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountSwapPaymentPeriod>
-
set
public KnownAmountSwapPaymentPeriod.Builder set(String propertyName, Object newValue)
-
set
public KnownAmountSwapPaymentPeriod.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<KnownAmountSwapPaymentPeriod>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<KnownAmountSwapPaymentPeriod>
-
build
public KnownAmountSwapPaymentPeriod build()
-
payment
public KnownAmountSwapPaymentPeriod.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 KnownAmountSwapPaymentPeriod.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 KnownAmountSwapPaymentPeriod.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 KnownAmountSwapPaymentPeriod.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 KnownAmountSwapPaymentPeriod.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<KnownAmountSwapPaymentPeriod>
-
-