javax.time.i18n
Class MinguoChronology

java.lang.Object
  extended by javax.time.calendar.Chronology
      extended by javax.time.i18n.MinguoChronology
All Implemented Interfaces:
java.io.Serializable, Calendrical

public final class MinguoChronology
extends Chronology
implements java.io.Serializable

The Minguo calendar system.

MinguoChronology defines the rules of the Minguo calendar system.

The Minguo calendar system is the same as the ISO calendar system apart from the year.

MinguoChronology is immutable and thread-safe.

Author:
Ryoji Suzuki, Stephen Colebourne
See Also:
Serialized Form

Field Summary
static MinguoChronology INSTANCE
          The singleton instance of MinguoChronology.
 
Method Summary
static DateTimeRule dayOfMonthRule()
          Gets the rule for the day-of-month field in the Minguo chronology.
static DateTimeRule dayOfWeekRule()
          Gets the rule for the day-of-week field in the Minguo chronology.
static DateTimeRule dayOfYearRule()
          Gets the rule for the day-of-year field in the Minguo chronology.
static DateTimeRule eraRule()
          Gets the rule for the era field in the Minguo chronology.
 java.lang.String getName()
          Gets the name of the chronology.
static DateTimeRule monthOfYearRule()
          Gets the rule for the month-of-year field in the Minguo chronology.
static PeriodUnit periodDays()
          Gets the period unit for days.
static PeriodUnit periodEras()
          Gets the period unit for eras.
static PeriodUnit periodMonths()
          Gets the period unit for months.
static PeriodUnit periodWeeks()
          Gets the period unit for weeks.
static PeriodUnit periodYears()
          Gets the period unit for years.
static DateTimeRule yearOfEraRule()
          Gets the rule for the year of era field in the Minguo chronology.
 
Methods inherited from class javax.time.calendar.Chronology
get, rule, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final MinguoChronology INSTANCE
The singleton instance of MinguoChronology.

Method Detail

getName

public java.lang.String getName()
Gets the name of the chronology.

Specified by:
getName in class Chronology
Returns:
the name of the chronology, never null

eraRule

public static DateTimeRule eraRule()
Gets the rule for the era field in the Minguo chronology.

Returns:
the rule for the year field, never null

yearOfEraRule

public static DateTimeRule yearOfEraRule()
Gets the rule for the year of era field in the Minguo chronology.

Returns:
the rule for the year of era field, never null

monthOfYearRule

public static DateTimeRule monthOfYearRule()
Gets the rule for the month-of-year field in the Minguo chronology.

Returns:
the rule for the month-of-year field, never null

dayOfMonthRule

public static DateTimeRule dayOfMonthRule()
Gets the rule for the day-of-month field in the Minguo chronology.

Returns:
the rule for the day-of-month field, never null

dayOfYearRule

public static DateTimeRule dayOfYearRule()
Gets the rule for the day-of-year field in the Minguo chronology.

Returns:
the rule for the day-of-year field, never null

dayOfWeekRule

public static DateTimeRule dayOfWeekRule()
Gets the rule for the day-of-week field in the Minguo chronology.

Returns:
the rule for the day-of-week field, never null

periodEras

public static PeriodUnit periodEras()
Gets the period unit for eras.

The period unit defines the concept of a period of an era. This is equivalent to the ISO eras period unit.

See eraRule() for the main date-time field.

Returns:
the period unit for eras, never null

periodYears

public static PeriodUnit periodYears()
Gets the period unit for years.

The period unit defines the concept of a period of a year. This is equivalent to the ISO years period unit.

See yearOfEraRule() for the main date-time field.

Returns:
the period unit for years, never null

periodMonths

public static PeriodUnit periodMonths()
Gets the period unit for months.

The period unit defines the concept of a period of a month. This is equivalent to the ISO months period unit.

See monthOfYearRule() for the main date-time field.

Returns:
the period unit for months, never null

periodWeeks

public static PeriodUnit periodWeeks()
Gets the period unit for weeks.

The period unit defines the concept of a period of a week. This is equivalent to the ISO weeks period unit.

Returns:
the period unit for weeks, never null

periodDays

public static PeriodUnit periodDays()
Gets the period unit for days.

The period unit defines the concept of a period of a day. This is equivalent to the ISO days period unit.

See dayOfMonthRule() for the main date-time field.

Returns:
the period unit for days, never null