jdk/src/share/classes/java/time/chrono/MinguoChronology.java
changeset 20873 e91d5b1cb8e6
parent 20794 ec823009c5f7
child 22081 86eb26ff8f2b
equal deleted inserted replaced
20872:8e486b70dff8 20873:e91d5b1cb8e6
    83  * This chronology defines the rules of the Minguo calendar system.
    83  * This chronology defines the rules of the Minguo calendar system.
    84  * This calendar system is primarily used in the Republic of China, often known as Taiwan.
    84  * This calendar system is primarily used in the Republic of China, often known as Taiwan.
    85  * Dates are aligned such that {@code 0001-01-01 (Minguo)} is {@code 1912-01-01 (ISO)}.
    85  * Dates are aligned such that {@code 0001-01-01 (Minguo)} is {@code 1912-01-01 (ISO)}.
    86  * <p>
    86  * <p>
    87  * The fields are defined as follows:
    87  * The fields are defined as follows:
    88  * <p><ul>
    88  * <ul>
    89  * <li>era - There are two eras, the current 'Republic' (ERA_ROC) and the previous era (ERA_BEFORE_ROC).
    89  * <li>era - There are two eras, the current 'Republic' (ERA_ROC) and the previous era (ERA_BEFORE_ROC).
    90  * <li>year-of-era - The year-of-era for the current era increases uniformly from the epoch at year one.
    90  * <li>year-of-era - The year-of-era for the current era increases uniformly from the epoch at year one.
    91  *  For the previous era the year increases from one as time goes backwards.
    91  *  For the previous era the year increases from one as time goes backwards.
    92  *  The value for the current era is equal to the ISO proleptic-year minus 1911.
    92  *  The value for the current era is equal to the ISO proleptic-year minus 1911.
    93  * <li>proleptic-year - The proleptic year is the same as the year-of-era for the
    93  * <li>proleptic-year - The proleptic year is the same as the year-of-era for the
    96  * <li>month-of-year - The Minguo month-of-year exactly matches ISO.
    96  * <li>month-of-year - The Minguo month-of-year exactly matches ISO.
    97  * <li>day-of-month - The Minguo day-of-month exactly matches ISO.
    97  * <li>day-of-month - The Minguo day-of-month exactly matches ISO.
    98  * <li>day-of-year - The Minguo day-of-year exactly matches ISO.
    98  * <li>day-of-year - The Minguo day-of-year exactly matches ISO.
    99  * <li>leap-year - The Minguo leap-year pattern exactly matches ISO, such that the two calendars
    99  * <li>leap-year - The Minguo leap-year pattern exactly matches ISO, such that the two calendars
   100  *  are never out of step.
   100  *  are never out of step.
   101  * </ul><p>
   101  * </ul>
   102  *
   102  *
   103  * @implSpec
   103  * @implSpec
   104  * This class is immutable and thread-safe.
   104  * This class is immutable and thread-safe.
   105  *
   105  *
   106  * @since 1.8
   106  * @since 1.8