public enum HijriEra extends java.lang.Enum<HijriEra> implements CalendarEra
The Hijri calendar only supports one single era called "Anno Hegirae" with the
numerical value 1.
| Enum Constant and Description |
|---|
ANNO_HEGIRAE
Singleton instance (often abbreviated as "AH").
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayName(java.util.Locale locale)
Equivalent to the expression
getDisplayName(locale, TextWidth.WIDE). |
java.lang.String |
getDisplayName(java.util.Locale locale,
TextWidth width)
Gets the description text dependent on the locale and style
parameters.
|
int |
getValue()
Yields an ordinal number which is scaled such that every era
which contains the ISO-date of UTC-epoch [1972-01-01] will have
the associated value
1. |
static HijriEra |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HijriEra[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final HijriEra ANNO_HEGIRAE
public static HijriEra[] values()
for (HijriEra c : HijriEra.values()) System.out.println(c);
public static HijriEra valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()
CalendarEraYields an ordinal number which is scaled such that every era
which contains the ISO-date of UTC-epoch [1972-01-01] will have
the associated value 1.
getValue in interface CalendarErapublic java.lang.String getDisplayName(java.util.Locale locale)
Equivalent to the expression getDisplayName(locale, TextWidth.WIDE).
locale - language settingnull)getDisplayName(Locale, TextWidth)public java.lang.String getDisplayName(java.util.Locale locale,
TextWidth width)
Gets the description text dependent on the locale and style parameters.
The second argument controls the width of description.
locale - language settingwidth - text widthnull)