src/java.base/share/classes/java/time/chrono/JapaneseEra.java
changeset 54360 6a4abdb6749c
parent 54359 3d8934bf505a
child 54580 79e95d8dd85d
equal deleted inserted replaced
54359:3d8934bf505a 54360:6a4abdb6749c
   150      * which has the value 2.
   150      * which has the value 2.
   151      */
   151      */
   152     public static final JapaneseEra HEISEI = new JapaneseEra(2, LocalDate.of(1989, 1, 8));
   152     public static final JapaneseEra HEISEI = new JapaneseEra(2, LocalDate.of(1989, 1, 8));
   153     /**
   153     /**
   154      * The singleton instance for the 'Reiwa' era (2019-05-01 - )
   154      * The singleton instance for the 'Reiwa' era (2019-05-01 - )
   155      * which has the value 3.
   155      * which has the value 3. The end date of this era is not specified, unless
   156      */
   156      * the Japanese Government defines it.
   157     private static final JapaneseEra REIWA = new JapaneseEra(3, LocalDate.of(2019, 5, 1));
   157      */
       
   158     public static final JapaneseEra REIWA = new JapaneseEra(3, LocalDate.of(2019, 5, 1));
   158 
   159 
   159     // The number of predefined JapaneseEra constants.
   160     // The number of predefined JapaneseEra constants.
   160     // There may be a supplemental era defined by the property.
   161     // There may be a supplemental era defined by the property.
   161     private static final int N_ERA_CONSTANTS = REIWA.getValue() + ERA_OFFSET;
   162     private static final int N_ERA_CONSTANTS = REIWA.getValue() + ERA_OFFSET;
   162 
   163