Module java.base

Enum Class MinguoEra

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

public enum MinguoEra extends Enum<MinguoEra> implements Era
An era in the Minguo calendar system.

The Minguo calendar system has two eras. The current era, for years from 1 onwards, is known as the 'Republic of China' 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 Republic of China' era.

Minguo years and eras
year-of-era era proleptic-year ISO proleptic-year
2ROC21913
1ROC11912
1BEFORE_ROC01911
2BEFORE_ROC-11910

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

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