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 ImmutableTermDepositConventionbuild()ImmutableTermDepositConvention.BuilderbusinessDayAdjustment(BusinessDayAdjustment businessDayAdjustment)Sets the business day adjustment to apply to the start and end date.ImmutableTermDepositConvention.Buildercurrency(Currency currency)Sets the primary currency.ImmutableTermDepositConvention.BuilderdayCount(DayCount dayCount)Sets the day count convention.Objectget(String propertyName)ImmutableTermDepositConvention.Buildername(String name)Sets the convention name, such as 'GBP-Deposit-ON'.ImmutableTermDepositConvention.Builderset(String propertyName, Object newValue)ImmutableTermDepositConvention.Builderset(org.joda.beans.MetaProperty<?> property, Object value)ImmutableTermDepositConvention.BuilderspotDateOffset(DaysAdjustment spotDateOffset)Sets the offset of the spot value date from the trade date.StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ImmutableTermDepositConvention>- Overrides:
getin 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:
setin interfaceorg.joda.beans.BeanBuilder<ImmutableTermDepositConvention>- Overrides:
setin 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:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableTermDepositConvention>
-
-