Serializable, Comparable<EthiopicEra>, Era, TemporalAccessor, TemporalAdjusterpublic enum EthiopicEra extends Enum<EthiopicEra> implements Era
The Ethiopic calendar system has two eras. The current era, for years from 1 onwards, is known as the 'Incarnation Era'. All previous years, zero or earlier in the proleptic count or one and greater in the year-of-era count, are part of the 'Before Incarnation Era' era.
The start of the Ethiopic epoch 0001-01-01 (Ethiopic) is 0284-08-29 (ISO).
Do not use ordinal() to obtain the numeric representation of EthiopicEra.
Use getValue() instead.
| Enum Constant | Description |
|---|---|
BEFORE_INCARNATION |
The singleton instance for the era before the current one, 'Before Incarnation Era',
which has the numeric value 0.
|
INCARNATION |
The singleton instance for the current era, 'Incarnation Era',
which has the numeric value 1.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getValue() |
Gets the numeric era
int value. |
static EthiopicEra |
of(int era) |
Obtains an instance of
EthiopicEra from an int value. |
static EthiopicEra |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static EthiopicEra[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfadjustInto, get, getDisplayName, getLong, isSupported, query, rangepublic static final EthiopicEra BEFORE_INCARNATION
public static final EthiopicEra INCARNATION
public static EthiopicEra[] values()
for (EthiopicEra c : EthiopicEra.values()) System.out.println(c);
public static EthiopicEra 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 static EthiopicEra of(int era)
EthiopicEra from an int value.
EthiopicEra is an enum representing the Ethiopic eras of BEFORE_INCARNATION/INCARNATION.
This factory allows the enum to be obtained from the int value.
era - the BEFORE_INCARNATION/INCARNATION value to represent, from 0 (BEFORE_INCARNATION) to 1 (INCARNATION)DateTimeException - if the value is invalidCopyright © 2010–2019 ThreeTen.org. All rights reserved.