Package com.ibm.icu.util
Enum IslamicCalendar.CalculationType
- java.lang.Object
-
- java.lang.Enum<IslamicCalendar.CalculationType>
-
- com.ibm.icu.util.IslamicCalendar.CalculationType
-
- All Implemented Interfaces:
Serializable
,Comparable<IslamicCalendar.CalculationType>
- Enclosing class:
- IslamicCalendar
public static enum IslamicCalendar.CalculationType extends Enum<IslamicCalendar.CalculationType>
enumeration of available calendar calculation types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ISLAMIC
Religious calendar (atronomical simulation)ISLAMIC_CIVIL
Tabular (intercalary years [2,5,7,10,13,16,18,21,24,26,29]) algorithm with civil (Friday) epoch.ISLAMIC_TBLA
Tabular (intercalary years [2,5,7,10,13,16,18,21,24,26,29]) algorithm with astronomical (Thursday) epoch.ISLAMIC_UMALQURA
Umm al-Qura calendar
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IslamicCalendar.CalculationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static IslamicCalendar.CalculationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ISLAMIC
public static final IslamicCalendar.CalculationType ISLAMIC
Religious calendar (atronomical simulation)
-
ISLAMIC_CIVIL
public static final IslamicCalendar.CalculationType ISLAMIC_CIVIL
Tabular (intercalary years [2,5,7,10,13,16,18,21,24,26,29]) algorithm with civil (Friday) epoch.
-
ISLAMIC_UMALQURA
public static final IslamicCalendar.CalculationType ISLAMIC_UMALQURA
Umm al-Qura calendar
-
ISLAMIC_TBLA
public static final IslamicCalendar.CalculationType ISLAMIC_TBLA
Tabular (intercalary years [2,5,7,10,13,16,18,21,24,26,29]) algorithm with astronomical (Thursday) epoch.
-
-
Method Detail
-
values
public static IslamicCalendar.CalculationType[] 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 (IslamicCalendar.CalculationType c : IslamicCalendar.CalculationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IslamicCalendar.CalculationType 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
-
-