public static final class ResolvedTermDeposit.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedTermDeposit>
ResolvedTermDeposit.| Modifier and Type | Method and Description |
|---|---|
ResolvedTermDeposit |
build() |
ResolvedTermDeposit.Builder |
currency(Currency currency)
Sets the primary currency.
|
ResolvedTermDeposit.Builder |
endDate(LocalDate endDate)
Sets the end date of the deposit.
|
Object |
get(String propertyName) |
ResolvedTermDeposit.Builder |
notional(double notional)
Sets the notional amount.
|
ResolvedTermDeposit.Builder |
rate(double rate)
Sets the fixed rate of interest.
|
ResolvedTermDeposit.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ResolvedTermDeposit.Builder |
set(String propertyName,
Object newValue) |
ResolvedTermDeposit.Builder |
startDate(LocalDate startDate)
Sets the start date of the deposit.
|
String |
toString() |
ResolvedTermDeposit.Builder |
yearFraction(double yearFraction)
Sets the year fraction between the start and end date.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ResolvedTermDeposit>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedTermDeposit>public ResolvedTermDeposit.Builder set(String propertyName, Object newValue)
public ResolvedTermDeposit.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ResolvedTermDeposit>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedTermDeposit>public ResolvedTermDeposit build()
public ResolvedTermDeposit.Builder currency(Currency currency)
This is the currency of the deposit and the currency that payment is made in.
currency - the new value, not nullpublic ResolvedTermDeposit.Builder notional(double notional)
The amount that is deposited. It is a positive signed amount if the deposit is 'Buy', and a negative signed amount if the deposit is 'Sell'.
The currency of the notional is specified by currency.
notional - the new valuepublic ResolvedTermDeposit.Builder startDate(LocalDate startDate)
This is the first date that interest accrues.
This is an adjusted date, which should be a valid business day
startDate - the new value, not nullpublic ResolvedTermDeposit.Builder endDate(LocalDate endDate)
This is the last day that interest accrues. This date must be after the start date.
This is an adjusted date, which should be a valid business day
endDate - the new value, not nullpublic ResolvedTermDeposit.Builder yearFraction(double yearFraction)
The value is usually calculated using a DayCount.
Typically the value will be close to 1 for one year and close to 0.5 for six months.
The fraction may be greater than 1, but not less than 0.
yearFraction - the new valuepublic ResolvedTermDeposit.Builder rate(double rate)
rate - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedTermDeposit>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.