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()
Not supported because the variant is missing.
|
CalendarSystem<T> |
getCalendarSystem(String variant)
Returns the calendar system for given calendar variant if available.
|
TimeLine<T> |
getTimeLine(String variant)
Obtains an object which is useful for generic interval support.
|
TimeLine<T> |
getTimeLine(VariantSource variant)
Obtains an object which is useful for generic interval support.
|
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, getCalendarSystem, getChronoType, getDefaultPivotYear, getDefaultStartOfDay, getExtensions, getFormatPattern, getRegisteredElements, isRegistered, lookup, preformat, preparserequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatPatternpublic 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()
Not supported because the variant is missing.
getCalendarSystem in class Chronology<T extends CalendarVariant<T>>ChronoException - (always)getCalendarSystem(String),
Chronology.getCalendarSystem(VariantSource)public CalendarSystem<T> getCalendarSystem(String variant)
ChronologyReturns the calendar system for given calendar variant if available.
getCalendarSystem in class Chronology<T extends CalendarVariant<T>>variant - name of calendar variantnullVariantSource.getVariant()public TimeLine<T> getTimeLine(String variant)
Obtains an object which is useful for generic interval support.
variant - name of calendar variantpublic TimeLine<T> getTimeLine(VariantSource variant)
Obtains an object which is useful for generic interval support.
variant - calendar variantpublic 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 falseCopyright © 2014–2021. All rights reserved.