declare namespace java { namespace time { namespace chrono { /** * 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. * * * * * * * * * * * * * * * * * * * * * * * *
year-of-eraeraproleptic-yearISO proleptic-year
2ROC21913
1ROC11912
1BEFORE_ROC01911
2BEFORE_ROC-11910
*

* Do not use {@code ordinal()} to obtain the numeric representation of {@code MinguoEra}. * Use {@code getValue()} instead. * @implSpec This is an immutable and thread-safe enum. * @since 1.8 */ // @ts-ignore class MinguoEra extends java.lang.Enum implements java.time.chrono.Era { /** * The singleton instance for the era before the current one, 'Before Republic of China Era', * which has the numeric value 0. */ // @ts-ignore public static readonly BEFORE_ROC: java.time.chrono.MinguoEra /** * The singleton instance for the current era, 'Republic of China Era', * which has the numeric value 1. */ // @ts-ignore public static readonly ROC: java.time.chrono.MinguoEra // @ts-ignore public static values(): java.time.chrono.MinguoEra[] // @ts-ignore public static valueOf(name: java.lang.String | string): java.time.chrono.MinguoEra /** * Obtains an instance of {@code MinguoEra} from an {@code int} value. *

* {@code MinguoEra} is an enum representing the Minguo eras of BEFORE_ROC/ROC. * This factory allows the enum to be obtained from the {@code int} value. * @param minguoEra the BEFORE_ROC/ROC value to represent, from 0 (BEFORE_ROC) to 1 (ROC) * @return the era singleton, not null * @throws DateTimeException if the value is invalid */ // @ts-ignore public static of(minguoEra: number /*int*/): java.time.chrono.MinguoEra /** * Gets the numeric era {@code int} value. *

* The era BEFORE_ROC has the value 0, while the era ROC has the value 1. * @return the era value, from 0 (BEFORE_ROC) to 1 (ROC) */ // @ts-ignore public getValue(): number /*int*/ } } } }