Enum Class BusinessCalendar.Roll
- All Implemented Interfaces:
Serializable,Comparable<BusinessCalendar.Roll>,Constable
- Enclosing class:
BusinessCalendar
Date roll conventions for payment dates landing on non-business days.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMove forward to the next business day.Forward, unless that crosses month-end — then backward.Leave the date as generated (for theoretical pricing).Move backward to the previous business day. -
Method Summary
Modifier and TypeMethodDescriptionstatic BusinessCalendar.RollReturns the enum constant of this class with the specified name.static BusinessCalendar.Roll[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Leave the date as generated (for theoretical pricing). -
FOLLOWING
Move forward to the next business day. -
MODIFIED_FOLLOWING
Forward, unless that crosses month-end — then backward. -
PRECEDING
Move backward to the previous business day.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-