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-era | *era | *proleptic-year | *ISO proleptic-year | *
---|---|---|---|
2 | ROC | 2 | 1913 | *
1 | ROC | 1 | 1912 | *
1 | BEFORE_ROC | 0 | 1911 | *
2 | BEFORE_ROC | -1 | 1910 | *
* 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
* {@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*/
}
}
}
}