Module net.finmath.lib
Enum DateIndex.DateIndexType
- java.lang.Object
-
- java.lang.Enum<DateIndex.DateIndexType>
-
- net.finmath.montecarlo.interestrate.products.indices.DateIndex.DateIndexType
-
- All Implemented Interfaces:
Serializable
,Comparable<DateIndex.DateIndexType>
- Enclosing class:
- DateIndex
public static enum DateIndex.DateIndexType extends Enum<DateIndex.DateIndexType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAY
MONTH
NUMBER_OF_DAYS_IN_MONTH
YEAR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateIndex.DateIndexType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DateIndex.DateIndexType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAY
public static final DateIndex.DateIndexType DAY
-
MONTH
public static final DateIndex.DateIndexType MONTH
-
YEAR
public static final DateIndex.DateIndexType YEAR
-
NUMBER_OF_DAYS_IN_MONTH
public static final DateIndex.DateIndexType NUMBER_OF_DAYS_IN_MONTH
-
-
Method Detail
-
values
public static DateIndex.DateIndexType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DateIndex.DateIndexType c : DateIndex.DateIndexType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateIndex.DateIndexType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-