public static final class ImmutableTermDepositConvention.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableTermDepositConvention>
ImmutableTermDepositConvention.| Modifier and Type | Method and 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(org.joda.beans.MetaProperty<?> property,
Object value) |
ImmutableTermDepositConvention.Builder |
set(String propertyName,
Object newValue) |
ImmutableTermDepositConvention.Builder |
spotDateOffset(DaysAdjustment spotDateOffset)
Sets the offset of the spot value date from the trade date.
|
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ImmutableTermDepositConvention>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableTermDepositConvention>public ImmutableTermDepositConvention.Builder set(String propertyName, Object newValue)
public ImmutableTermDepositConvention.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ImmutableTermDepositConvention>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableTermDepositConvention>public ImmutableTermDepositConvention build()
public ImmutableTermDepositConvention.Builder currency(Currency currency)
This is the currency of the term deposit and the currency that payment is made in.
currency - the new value, not nullpublic ImmutableTermDepositConvention.Builder name(String name)
name - the new value, not nullpublic ImmutableTermDepositConvention.Builder businessDayAdjustment(BusinessDayAdjustment businessDayAdjustment)
The start and end date will be adjusted as defined here.
businessDayAdjustment - the new value, not nullpublic ImmutableTermDepositConvention.Builder dayCount(DayCount dayCount)
This is used to convert dates to a numerical value.
dayCount - the new value, not nullpublic ImmutableTermDepositConvention.Builder spotDateOffset(DaysAdjustment spotDateOffset)
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.
spotDateOffset - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableTermDepositConvention>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.