public final class CurveNodeDateOrder extends Object implements org.joda.beans.ImmutableBean, Serializable
In any curve, two nodes may not have the same date. In addition, it is typically
desirable to ensure that there is a minimum gap between two nodes, such as 7 days.
An instance of CurveNodeDateOrder specifies the minimum gap and what to do if the clash occurs.
| Modifier and Type | Class and Description |
|---|---|
static class |
CurveNodeDateOrder.Meta
The meta-bean for
CurveNodeDateOrder. |
| Modifier and Type | Field and Description |
|---|---|
static CurveNodeDateOrder |
DEFAULT
The default instance, that throws an exception if the node is on the same date
or before another node.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
CurveNodeClashAction |
getAction()
Gets the action to perform if a clash occurs.
|
int |
getMinGapInDays()
Gets the minimum gap between two curve nodes, measured in calendar days.
|
int |
hashCode() |
static CurveNodeDateOrder.Meta |
meta()
The meta-bean for
CurveNodeDateOrder. |
CurveNodeDateOrder.Meta |
metaBean() |
static CurveNodeDateOrder |
of(int minGapInDays,
CurveNodeClashAction action)
Obtains an instance from the minimum gap, allowing reordering flag and clash action.
|
String |
toString() |
public static final CurveNodeDateOrder DEFAULT
public static CurveNodeDateOrder of(int minGapInDays, CurveNodeClashAction action)
minGapInDays - the minimum gap between this node and the previous node in days, one or greateraction - the action to perform if a clash occurspublic static CurveNodeDateOrder.Meta meta()
CurveNodeDateOrder.public CurveNodeDateOrder.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic int getMinGapInDays()
public CurveNodeClashAction getAction()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.