public static final class TermDeposit.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<TermDeposit>
TermDeposit.| Modifier and Type | Method and Description |
|---|---|
TermDeposit |
build() |
TermDeposit.Builder |
businessDayAdjustment(BusinessDayAdjustment businessDayAdjustment)
Sets the business day adjustment to apply to the start and end date, optional.
|
TermDeposit.Builder |
buySell(BuySell buySell)
Sets whether the term deposit is 'Buy' or 'Sell'.
|
TermDeposit.Builder |
currency(Currency currency)
Sets the primary currency.
|
TermDeposit.Builder |
dayCount(DayCount dayCount)
Sets the day count convention.
|
TermDeposit.Builder |
endDate(LocalDate endDate)
Sets the end date of the deposit.
|
Object |
get(String propertyName) |
TermDeposit.Builder |
notional(double notional)
Sets the notional amount.
|
TermDeposit.Builder |
rate(double rate)
Sets the fixed interest rate to be paid.
|
TermDeposit.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
TermDeposit.Builder |
set(String propertyName,
Object newValue) |
TermDeposit.Builder |
startDate(LocalDate startDate)
Sets the start date of the deposit.
|
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<TermDeposit>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<TermDeposit>public TermDeposit.Builder set(String propertyName, Object newValue)
public TermDeposit.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<TermDeposit>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<TermDeposit>public TermDeposit build()
public TermDeposit.Builder buySell(BuySell buySell)
A value of 'Buy' implies payment of the principal at the start date and receipt of the principal plus interest at the end date. A value of 'Sell' implies the opposite. In other words, 'Buy' refers to buying the service of "money storage", with the benefit of receiving interest.
buySell - the new value, not nullpublic TermDeposit.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 TermDeposit.Builder notional(double notional)
The notional represents the principal amount, and must be non-negative.
The currency of the notional is specified by currency.
notional - the new valuepublic TermDeposit.Builder startDate(LocalDate startDate)
Interest accrues from this date.
This date is typically set to be a valid business day.
Optionally, the businessDayAdjustment property may be set to provide a rule for adjustment.
startDate - the new value, not nullpublic TermDeposit.Builder endDate(LocalDate endDate)
Interest accrues until this date.
This date is typically set to be a valid business day.
Optionally, the businessDayAdjustment property may be set to provide a rule for adjustment.
This date must be after the start date.
endDate - the new value, not nullpublic TermDeposit.Builder businessDayAdjustment(BusinessDayAdjustment businessDayAdjustment)
The start and end date are typically defined as valid business days and thus do not need to be adjusted. If this optional property is present, then the start and end date will be adjusted as defined here.
businessDayAdjustment - the new valuepublic TermDeposit.Builder dayCount(DayCount dayCount)
This is used to convert dates to a numerical value.
dayCount - the new value, not nullpublic TermDeposit.Builder rate(double rate)
rate - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<TermDeposit>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.