T - generic type compatible to CalendarVariantpublic final class CalendarFamily<T extends CalendarVariant<T>> extends Chronology<T>
Represents a set of various calendar systems as members of a family.
| Modifier and Type | Class and Description |
|---|---|
static 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.
|
| Modifier and Type | Method and Description |
|---|---|
CalendarSystem<T> |
getCalendarSystem()
Returns the associated calendar system if available.
|
CalendarSystem<T> |
getCalendarSystem(java.lang.String variant)
Returns the calendar system for given calendar variant if available.
|
boolean |
hasCalendarSystem()
Queries if this chronology has a calendar system.
|
boolean |
isSupported(ChronoElement<?> element)
Queries if given chronological element is supported by this
chronology.
|
createFrom, createFrom, getChronoType, getExtensions, getRegisteredElements, isRegistered, lookup, preformat, preparserpublic boolean hasCalendarSystem()
ChronologyQueries if this chronology has a calendar system.
hasCalendarSystem in class Chronology<T extends CalendarVariant<T>>true if this chronology has a calendar system else falseChronology.getCalendarSystem()public CalendarSystem<T> getCalendarSystem()
ChronologyReturns the associated calendar system if available.
getCalendarSystem in class Chronology<T extends CalendarVariant<T>>nullChronology.hasCalendarSystem()public CalendarSystem<T> getCalendarSystem(java.lang.String variant)
ChronologyReturns the calendar system for given calendar variant if available.
getCalendarSystem in class Chronology<T extends CalendarVariant<T>>variant - name of calendar variantnullCalendarVariant.getVariant()public boolean isSupported(ChronoElement<?> element)
ChronologyQueries 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.
isSupported in class Chronology<T extends CalendarVariant<T>>element - element to be asked (optional)true if supported else false