Module java.base

Enum Class IsoEra

java.lang.Object
java.lang.Enum<IsoEra>
java.time.chrono.IsoEra
All Implemented Interfaces:
Serializable, Comparable<IsoEra>, Constable, Era, TemporalAccessor, TemporalAdjuster

public enum IsoEra extends Enum<IsoEra> implements Era
An era in the ISO calendar system.

The ISO-8601 standard does not define eras. A definition has therefore been created with two eras - 'Current era' (CE) for years on or after 0001-01-01 (ISO), and 'Before current era' (BCE) for years before that.

ISO years and eras
year-of-era era proleptic-year
2CE2
1CE1
1BCE0
2BCE-1

Do not use ordinal() to obtain the numeric representation of IsoEra. Use getValue() instead.

Implementation Requirements:
This is an immutable and thread-safe enum.
Since:
1.8