public final class FutureValueNotional extends Object implements org.joda.beans.ImmutableBean, Serializable
The future value notional is calculated as the notional multiplied by one plus the fixed rate raised to the power of the fixed rate day count fraction, i.e. Future Value Notional = Notional Amount * (1 + Fixed Rate) ^ (Fixed Rate Day Count Fraction).
The future value notional is normally only required for Brazilian CDI Swaps.
| Modifier and Type | Class and Description |
|---|---|
static class |
FutureValueNotional.Builder
The bean-builder for
FutureValueNotional. |
static class |
FutureValueNotional.Meta
The meta-bean for
FutureValueNotional. |
| Modifier and Type | Method and Description |
|---|---|
static FutureValueNotional |
autoCalculate()
Obtains an empty instance, that causes the future value notional to be automatically
calculated using the standard formula.
|
static FutureValueNotional.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
OptionalInt |
getDayCountDays()
Gets the number of days in the calculation period.
|
OptionalDouble |
getValue()
Gets the amount.
|
Optional<LocalDate> |
getValueDate()
Gets the value date.
|
int |
hashCode() |
static FutureValueNotional.Meta |
meta()
The meta-bean for
FutureValueNotional. |
FutureValueNotional.Meta |
metaBean() |
static FutureValueNotional |
of(double value)
Obtains an instance from the specified amount.
|
static FutureValueNotional |
of(double value,
LocalDate valueDate,
int dayCountDays)
Obtains an instance from the specified amount, date and number of days.
|
FutureValueNotional.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static FutureValueNotional autoCalculate()
public static FutureValueNotional of(double value, LocalDate valueDate, int dayCountDays)
value - the amountvalueDate - the value datedayCountDays - the number of dayspublic static FutureValueNotional of(double value)
value - the amountpublic static FutureValueNotional.Meta meta()
FutureValueNotional.public static FutureValueNotional.Builder builder()
public FutureValueNotional.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic OptionalDouble getValue()
The future value notional amount, derived as per the standard formula.
public Optional<LocalDate> getValueDate()
This is the adjusted value date of the future value amount, which is the adjusted end date.
public OptionalInt getDayCountDays()
This defines the number of days from the adjusted start date to the adjusted end date as calculated by the day count.
public FutureValueNotional.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.