Top Description Fields Constructors Methods
org.threeten.extra.chrono

public final Enum InternationalFixedEra

extends Enum<InternationalFixedEra>
implements Era
Class Inheritance
All Implemented Interfaces
java.time.chrono.Era, java.time.temporal.TemporalAdjuster, java.time.temporal.TemporalAccessor
Imports
java.time.DateTimeException, java.time.chrono.Era

An era in the International Fixed calendar system.

The International Fixed calendar system officially 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.

Implementation Requirements:

This is an immutable and thread-safe enum.

Field Summary

Modifier and TypeField and Description
public static final InternationalFixedEra
CE

The singleton instance for the current era, 'Current Era', which has the numeric value 1.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the era value, only 1 (CE)
getValue
()

Implements java.time.chrono.Era.getValue.

Gets the numeric era int value.

public static InternationalFixedEra

Returns:

the era singleton, not null
of
(final int
the CE value to represent, only 1 (CE)
era
)

Obtains an instance of InternationalFixedEra from an int value.

public static InternationalFixedEra
public static InternationalFixedEra[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CEback to summary
public static final InternationalFixedEra CE

The singleton instance for the current era, 'Current Era', which has the numeric value 1.

Constructor Detail

InternationalFixedEraback to summary
private InternationalFixedEra()

Method Detail

getValueback to summary
public int getValue()

Implements java.time.chrono.Era.getValue.

Gets the numeric era int value.

The era CE has the value 1.

Returns:int

the era value, only 1 (CE)

Annotations
@Override
ofback to summary
public static InternationalFixedEra of(final int era)

Obtains an instance of 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.

Parameters
era:int

the CE value to represent, only 1 (CE)

Returns:InternationalFixedEra

the era singleton, not null

Exceptions
DateTimeException:
if the value is invalid
valueOfback to summary
public static InternationalFixedEra valueOf(String name)
valuesback to summary
public static InternationalFixedEra[] values()