Class ImmutableTermDepositConvention.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableTermDepositConvention>
-
- com.opengamma.strata.product.deposit.type.ImmutableTermDepositConvention.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ImmutableTermDepositConvention>
- Enclosing class:
- ImmutableTermDepositConvention
public static final class ImmutableTermDepositConvention.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableTermDepositConvention>
The bean-builder forImmutableTermDepositConvention
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableTermDepositConvention
build()
ImmutableTermDepositConvention.Builder
businessDayAdjustment(BusinessDayAdjustment businessDayAdjustment)
Sets the business day adjustment to apply to the start and end date.ImmutableTermDepositConvention.Builder
currency(Currency currency)
Sets the primary currency.ImmutableTermDepositConvention.Builder
dayCount(DayCount dayCount)
Sets the day count convention.Object
get(String propertyName)
ImmutableTermDepositConvention.Builder
name(String name)
Sets the convention name, such as 'GBP-Deposit-ON'.ImmutableTermDepositConvention.Builder
set(String propertyName, Object newValue)
ImmutableTermDepositConvention.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
ImmutableTermDepositConvention.Builder
spotDateOffset(DaysAdjustment spotDateOffset)
Sets the offset of the spot value date from the trade date.String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ImmutableTermDepositConvention>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableTermDepositConvention>
-
set
public ImmutableTermDepositConvention.Builder set(String propertyName, Object newValue)
-
set
public ImmutableTermDepositConvention.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ImmutableTermDepositConvention>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableTermDepositConvention>
-
build
public ImmutableTermDepositConvention build()
-
currency
public ImmutableTermDepositConvention.Builder currency(Currency currency)
Sets the primary currency.This is the currency of the term deposit and the currency that payment is made in.
- Parameters:
currency
- the new value, not null- Returns:
- this, for chaining, not null
-
name
public ImmutableTermDepositConvention.Builder name(String name)
Sets the convention name, such as 'GBP-Deposit-ON'.- Parameters:
name
- the new value, not null- Returns:
- this, for chaining, not null
-
businessDayAdjustment
public ImmutableTermDepositConvention.Builder businessDayAdjustment(BusinessDayAdjustment businessDayAdjustment)
Sets the business day adjustment to apply to the start and end date.The start and end date will be adjusted as defined here.
- Parameters:
businessDayAdjustment
- the new value, not null- Returns:
- this, for chaining, not null
-
dayCount
public ImmutableTermDepositConvention.Builder dayCount(DayCount dayCount)
Sets the day count convention.This is used to convert dates to a numerical value.
- Parameters:
dayCount
- the new value, not null- Returns:
- this, for chaining, not null
-
spotDateOffset
public ImmutableTermDepositConvention.Builder spotDateOffset(DaysAdjustment spotDateOffset)
Sets the offset of the spot value date from the trade date.The offset is applied to the trade date and is typically plus 2 business days. The start date of the term deposit is equal to the spot date and the end date of the term deposit is relative to the start date.
- Parameters:
spotDateOffset
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableTermDepositConvention>
-
-