com.opengamma.strata.market.curve

## Class CurveNodeDateOrder

• All Implemented Interfaces:
Serializable, Bean, ImmutableBean

public final class CurveNodeDateOrder
extends Object
implements ImmutableBean, Serializable
The date order rules to apply to a pair of curve nodes.

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.

Serialized Form
• ### Nested Class Summary

Nested Classes
Modifier and Type Class and Description
static class  CurveNodeDateOrder.Meta
The meta-bean for CurveNodeDateOrder.
• ### Field Summary

Fields
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.
• ### Method Summary

All Methods
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()
• ### Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait
• ### Methods inherited from interface org.joda.beans.Bean

property, propertyNames
• ### Field Detail

• #### DEFAULT

public static final CurveNodeDateOrder DEFAULT
The default instance, that throws an exception if the node is on the same date or before another node.
• ### Method Detail

• #### of

public static CurveNodeDateOrder of(int minGapInDays,
CurveNodeClashAction action)
Obtains an instance from the minimum gap, allowing reordering flag and clash action.
Parameters:
minGapInDays - the minimum gap between this node and the previous node in days, one or greater
action - the action to perform if a clash occurs
Returns:
an instance specifying a fixed date
• #### meta

public static CurveNodeDateOrder.Meta meta()
The meta-bean for CurveNodeDateOrder.
Returns:
the meta-bean, not null
• #### metaBean

public CurveNodeDateOrder.Meta metaBean()
Specified by:
metaBean in interface Bean
• #### getMinGapInDays

public int getMinGapInDays()
Gets the minimum gap between two curve nodes, measured in calendar days. A gap of one day is the smallest allowed. A clash occurs if the period between the two nodes is less than the minimum. The gap applies to the node before this one and the node after this one.
Returns:
the value of the property
• #### getAction

public CurveNodeClashAction getAction()
Gets the action to perform if a clash occurs.
Returns:
the value of the property, not null
• #### equals

public boolean equals(Object obj)
Overrides:
equals in class Object
• #### hashCode

public int hashCode()
Overrides:
hashCode in class Object
• #### toString

public String toString()
Overrides:
toString in class Object