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(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.
|
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, createFrom, createFrom, getChronoType, getDefaultPivotYear, getDefaultStartOfDay, getExtensions, getFormatPattern, 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(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 TimeLine<T> getTimeLine(String variant)
Obtains an object which is useful for generic interval support.
variant - name of 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–2017. All rights reserved.