src/java.base/share/classes/java/time/chrono/JapaneseEra.java
changeset 53216 df97e2c0f9ae
parent 52329 51a3e729535c
child 53614 125012edb689
equal deleted inserted replaced
53215:299fe76c25c7 53216:df97e2c0f9ae
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    92  * Japan introduced the Gregorian calendar starting with Meiji 6.
    92  * Japan introduced the Gregorian calendar starting with Meiji 6.
    93  * Only Meiji and later eras are supported;
    93  * Only Meiji and later eras are supported;
    94  * dates before Meiji 6, January 1 are not supported.
    94  * dates before Meiji 6, January 1 are not supported.
    95  * The number of the valid eras may increase, as new eras may be
    95  * The number of the valid eras may increase, as new eras may be
    96  * defined by the Japanese government. Once an era is defined,
    96  * defined by the Japanese government. Once an era is defined,
    97  * subsequent versions of this class will add a singleton instance
    97  * future versions of the platform may add a singleton instance
    98  * for it. The defined era is expected to have a consecutive integer
    98  * for it. The defined era is expected to have a consecutive integer
    99  * associated with it.
    99  * associated with it.
   100  *
   100  *
   101  * @implSpec
   101  * @implSpec
   102  * This class is immutable and thread-safe.
   102  * This class is immutable and thread-safe.