Module java.base

Class AbstractChronology

java.lang.Object
java.time.chrono.AbstractChronology
All Implemented Interfaces:
Comparable<Chronology>, Chronology
Direct Known Subclasses:
HijrahChronology, IsoChronology, JapaneseChronology, MinguoChronology, ThaiBuddhistChronology

public abstract class AbstractChronology extends Object implements Chronology
An abstract implementation of a calendar system, used to organize and identify dates.

The main date and time API is built on the ISO calendar system. The chronology operates behind the scenes to represent the general concept of a calendar system.

See Chronology for more details.

Implementation Requirements:
This class is separated from the Chronology interface so that the static methods are not inherited. While Chronology can be implemented directly, it is strongly recommended to extend this abstract class instead.

This class must be implemented with care to ensure other classes operate correctly. All implementations that can be instantiated must be final, immutable and thread-safe. Subclasses should be Serializable wherever possible.

Since:
1.8