public enum EthiopianEra extends Enum<EthiopianEra> implements CalendarEra
The Ethiopian calendar supports two eras.
Amete-Mihret is preferred in modern times (although both eras can still be used in parallel) but if mihret-years become smaller than 1 then Amete-Alem is used.
| Enum Constant and Description |
|---|
AMETE_ALEM
The era "Anno Mundi" (English - "Year of the World") in the version
of Panodoros starts at BC-5493-08-29 (Julian calendar).
|
AMETE_MIHRET
This era (English - "Year of Grace") is used for current years
>= 1 and
starts at AD-8-08-29 (Julian calendar). |
| 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 EthiopianEra |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EthiopianEra[] |
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 EthiopianEra AMETE_ALEM
public static final EthiopianEra AMETE_MIHRET
>= 1 and
starts at AD-8-08-29 (Julian calendar).public static EthiopianEra[] values()
for (EthiopianEra c : EthiopianEra.values()) System.out.println(c);
public static EthiopianEra 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.