Module net.finmath.lib
Enum BusinessdayCalendar.DateOffsetUnit
- java.lang.Object
-
- java.lang.Enum<BusinessdayCalendar.DateOffsetUnit>
-
- net.finmath.time.businessdaycalendar.BusinessdayCalendar.DateOffsetUnit
-
- All Implemented Interfaces:
Serializable
,Comparable<BusinessdayCalendar.DateOffsetUnit>
- Enclosing interface:
- BusinessdayCalendar
public static enum BusinessdayCalendar.DateOffsetUnit extends Enum<BusinessdayCalendar.DateOffsetUnit>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUSINESS_DAYS
DAYS
MONTHS
WEEKS
YEARS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BusinessdayCalendar.DateOffsetUnit
getEnum(String string)
Get the date offset unit enum for a string (using common synonyms like "d", "b", "bd", "w").static BusinessdayCalendar.DateOffsetUnit
valueOf(String name)
Returns the enum constant of this type with the specified name.static BusinessdayCalendar.DateOffsetUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAYS
public static final BusinessdayCalendar.DateOffsetUnit DAYS
-
BUSINESS_DAYS
public static final BusinessdayCalendar.DateOffsetUnit BUSINESS_DAYS
-
WEEKS
public static final BusinessdayCalendar.DateOffsetUnit WEEKS
-
MONTHS
public static final BusinessdayCalendar.DateOffsetUnit MONTHS
-
YEARS
public static final BusinessdayCalendar.DateOffsetUnit YEARS
-
-
Method Detail
-
values
public static BusinessdayCalendar.DateOffsetUnit[] 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 (BusinessdayCalendar.DateOffsetUnit c : BusinessdayCalendar.DateOffsetUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BusinessdayCalendar.DateOffsetUnit 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
-
getEnum
public static BusinessdayCalendar.DateOffsetUnit getEnum(String string)
Get the date offset unit enum for a string (using common synonyms like "d", "b", "bd", "w").- Parameters:
string
- The date roll convention name.- Returns:
- The date roll convention enum.
-
-