java.time.chrono.Era, java.time.temporal.TemporalAccessor, java.time.temporal.TemporalAdjusterpublic enum InternationalFixedEra extends java.lang.Enum<InternationalFixedEra> implements java.time.chrono.Era
The International Fixed calendar system only has one era. The current era, for years from 1 onwards, is known as 'Current Era'. All previous years are invalid.
The start of the International Fixed epoch 0001/01/01 (IFC) is 0001-01-01 (ISO).
Do not use ordinal() to obtain the numeric representation of InternationalFixedEra.
Use getValue() instead.
| Enum Constant | Description |
|---|---|
CE |
The singleton instance for the current era, 'Current Era',
which has the numeric value 1.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getValue() |
Gets the numeric era
int value. |
static InternationalFixedEra |
of(int era) |
Obtains an instance of
InternationalFixedEra from an int value. |
static InternationalFixedEra |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static InternationalFixedEra[] |
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, valueOfpublic static final InternationalFixedEra CE
public static InternationalFixedEra[] values()
for (InternationalFixedEra c : InternationalFixedEra.values()) System.out.println(c);
public static InternationalFixedEra 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 static InternationalFixedEra of(int era)
InternationalFixedEra from an int value.
InternationalFixedEra is an enum representing the International Fixed era of CE.
This factory allows the enum to be obtained from the int value.
era - the CE value to represent, only 1 (CE)java.time.DateTimeException - if the value is invalidpublic int getValue()
int value.
The era CE has the value 1.
getValue in interface java.time.chrono.EraCopyright © 2010–2018 ThreeTen.org. All rights reserved.