public enum HebrewEra extends Enum<HebrewEra> implements CalendarEra
The Hebrew calendar only supports one single era called "Anno Mundi" (or short "AM").
| Enum Constant and Description |
|---|
ANNO_MUNDI
Marks the date since the creation of the world.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName(Locale locale)
Equivalent to the expression
getDisplayName(locale, TextWidth.WIDE). |
String |
getDisplayName(Locale locale,
TextWidth width)
Gets the description text dependent on the locale and style parameters.
|
static HebrewEra |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HebrewEra[] |
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 HebrewEra ANNO_MUNDI
The date 1st of TISHRI in year A.M. 1 corresponds to ISO -3760-09-07.
public static HebrewEra[] values()
for (HebrewEra c : HebrewEra.values()) System.out.println(c);
public static HebrewEra valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getDisplayName(Locale locale)
Equivalent to the expression getDisplayName(locale, TextWidth.WIDE).
locale - language settingnull)getDisplayName(Locale, TextWidth)public String getDisplayName(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)Copyright © 2014–2021. All rights reserved.