CalendarSystem
is an abstract class that defines the programming interface to deal with calendar date and time.
CalendarSystem
instances are singletons. For example, there exists only one Gregorian calendar instance in the Java runtime environment. A singleton instance can be obtained calling one of the static factory methods.
CalendarDate
For the methods in a CalendarSystem
that manipulate a CalendarDate
, CalendarDate
s that have been created by the CalendarSystem
must be specified. Otherwise, the methods throw an exception. This is because, for example, a Chinese calendar date can't be understood by the Hebrew calendar system.
Calendar names
Each calendar system has a unique name to be identified. The Java runtime in this release supports the following calendar systems.
Name Calendar System --------------------------------------- gregorian Gregorian Calendar julian Julian Calendar japanese Japanese Imperial Calendar
@see CalendarDate
@author Masayoshi Okutsu
@since 1.5