Package net.time4j.engine
Class CalendarFamily<T extends CalendarVariant<T>>
java.lang.Object
net.time4j.engine.Chronology<T>
net.time4j.engine.CalendarFamily<T>
- Type Parameters:
T
- generic type compatible toCalendarVariant
- All Implemented Interfaces:
ChronoMerger<T>
Represents a set of various calendar systems as members of a family.
- Since:
- 3.4/4.3
- Author:
- Meno Hochschild
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
CalendarFamily.Builder<T extends CalendarVariant<T>>
Creates a builder for a new calendar family and will only be used during loading a class of a calendar variant in a static initializer. -
Method Summary
Modifier and TypeMethodDescriptionNot supported because the variant is missing.getCalendarSystem(String variant)
Returns the calendar system for given calendar variant if available.getTimeLine(String variant)
Obtains an object which is useful for generic interval support.getTimeLine(VariantSource variant)
Obtains an object which is useful for generic interval support.boolean
Queries if this chronology has a calendar system.boolean
isSupported(ChronoElement<?> element)
Queries if given chronological element is supported by this chronology.Methods inherited from class net.time4j.engine.Chronology
createFrom, createFrom, getCalendarSystem, getChronoType, getDefaultPivotYear, getDefaultStartOfDay, getExtensions, getFormatPattern, getRegisteredElements, isRegistered, lookup, preformat, preparser
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.time4j.engine.ChronoMerger
getFormatPattern
-
Method Details
-
hasCalendarSystem
public boolean hasCalendarSystem()Description copied from class:Chronology
Queries if this chronology has a calendar system.
- Overrides:
hasCalendarSystem
in classChronology<T extends CalendarVariant<T>>
- Returns:
true
if this chronology has a calendar system elsefalse
- See Also:
Chronology.getCalendarSystem()
-
getCalendarSystem
Not supported because the variant is missing.
- Overrides:
getCalendarSystem
in classChronology<T extends CalendarVariant<T>>
- Returns:
- nothing
- Throws:
ChronoException
- (always)- See Also:
getCalendarSystem(String)
,Chronology.getCalendarSystem(VariantSource)
-
getCalendarSystem
Description copied from class:Chronology
Returns the calendar system for given calendar variant if available.
- Overrides:
getCalendarSystem
in classChronology<T extends CalendarVariant<T>>
- Parameters:
variant
- name of calendar variant- Returns:
- calendar system, not
null
- See Also:
VariantSource.getVariant()
-
getTimeLine
Obtains an object which is useful for generic interval support.
- Parameters:
variant
- name of calendar variant- Returns:
- serializable timeline which is variant-specific
- Since:
- 3.36/4.31
-
getTimeLine
Obtains an object which is useful for generic interval support.
- Parameters:
variant
- calendar variant- Returns:
- serializable timeline which is variant-specific
- Since:
- 5.0
-
isSupported
Description copied from class:Chronology
Queries if given chronological element is supported by this chronology.
The element will be supported if it is either registered or defines a suitable element rule for this chronology.
- Overrides:
isSupported
in classChronology<T extends CalendarVariant<T>>
- Parameters:
element
- element to be asked (optional)- Returns:
true
if supported elsefalse
-