public final class ValueStepSequence extends Object implements org.joda.beans.ImmutableBean, Serializable
A financial value, such as the notional or interest rate, may vary over time.
This class represents a sequence of changes in the value within ValueSchedule.
The sequence is defined by a start date, end date and frequency.
The adjustment at each step is defined using ValueAdjustment.
| Modifier and Type | Class and Description |
|---|---|
static class |
ValueStepSequence.Meta
The meta-bean for
ValueStepSequence. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ValueAdjustment |
getAdjustment()
Gets the adjustment representing the change that occurs at each step.
|
LocalDate |
getFirstStepDate()
Gets the first date in the sequence.
|
Frequency |
getFrequency()
Gets the frequency of the sequence.
|
LocalDate |
getLastStepDate()
Gets the last date in the sequence.
|
int |
hashCode() |
static ValueStepSequence.Meta |
meta()
The meta-bean for
ValueStepSequence. |
ValueStepSequence.Meta |
metaBean() |
static ValueStepSequence |
of(LocalDate firstStepDate,
LocalDate lastStepDate,
Frequency frequency,
ValueAdjustment adjustment)
Obtains an instance from the dates, frequency and change.
|
String |
toString() |
public static ValueStepSequence of(LocalDate firstStepDate, LocalDate lastStepDate, Frequency frequency, ValueAdjustment adjustment)
firstStepDate - the first date of the sequencelastStepDate - the last date of the sequencefrequency - the frequency of changesadjustment - the adjustment at each steppublic static ValueStepSequence.Meta meta()
ValueStepSequence.public ValueStepSequence.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic LocalDate getFirstStepDate()
This sequence will change the value on this date, but not before. This must be one of the unadjusted dates in the schedule period schedule.
For example, consider a 5 year swap from 2012-02-01 to 2017-02-01 with 6 month frequency. The date '2013-02-01' is an unadjusted schedule period boundary, and so may be specified here.
public LocalDate getLastStepDate()
This sequence will change the value on this date, but not after. This must be one of the unadjusted dates in the schedule period schedule.
For example, consider a 5 year swap from 2012-02-01 to 2017-02-01 with 6 month frequency. The date '2015-02-01' is an unadjusted schedule period boundary, and so may be specified here.
public Frequency getFrequency()
This sequence will change the value on each date between the start and end defined by this frequency.
The frequency is interpreted relative to the frequency of a Schedule.
It must be equal or greater than the related schedule.
public ValueAdjustment getAdjustment()
The adjustment type must not be 'Replace'.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.