mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-20534 Add Japanese era constant for REIWA in ICU4J JapaneseCalendar
This commit is contained in:
parent
52d192e2b5
commit
53f17806de
1 changed files with 7 additions and 0 deletions
|
@ -386,6 +386,12 @@ public class JapaneseCalendar extends GregorianCalendar {
|
|||
*/
|
||||
static public final int HEISEI;
|
||||
|
||||
/**
|
||||
* Constant for the era starting on May 1, 2019 AD.
|
||||
* @stable ICU 64
|
||||
*/
|
||||
static public final int REIWA;
|
||||
|
||||
// We want to make these era constants initialized in a static initializer
|
||||
// block to prevent javac to inline these values in a consumer code.
|
||||
// By doing so, we can keep better binary compatibility across versions even
|
||||
|
@ -395,6 +401,7 @@ public class JapaneseCalendar extends GregorianCalendar {
|
|||
TAISHO = 233;
|
||||
SHOWA = 234;
|
||||
HEISEI = 235;
|
||||
REIWA = 236;
|
||||
CURRENT_ERA = ERA_RULES.getCurrentEraIndex();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue