public enum EthiopianEra extends java.lang.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 |
|---|---|
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 EthiopianEra |
valueOf(java.lang.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(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.
Attention: This number is neither necessarily unique nor does it imply any chronological order.
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)