Uses of Interface
net.time4j.engine.ChronoElement
Packages that use ChronoElement
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment.Support for various regional calendars.
Support for the Badi calendar.
Support for the French revolutionary calendar.
Support for the traditional Hindu calendar family.
Defines the common generic schemes and interfaces of chronological
systems.
Defines common interfaces for any format support of Time4J.
This package contains the expert-level format- and parse engine of Time4J.
Support for the historical ancestors of modern ISO-8601-standard.
Interval support.
-
Uses of ChronoElement in net.time4j
Subinterfaces of ChronoElement in net.time4jModifier and TypeInterfaceDescriptioninterfaceAdjustableElement<V,T>Extends a chronological element by some standard ways of manipulation.interfaceRepresents the calendar date.interfaceNavigableElement<V extends Enum<V>>Defines additional enum-based operators for setting new element values taking into account the old element value.interfaceThe element for the ordinal weekday in month.interfaceProportionalElement<V extends Number,T>Defines an element which can interprete its value as proportional value.interfaceRepresents the wall time.interfaceZonalElement<V>Extends a chronological element by some zonal queries.Fields in net.time4j declared as ChronoElementModifier and TypeFieldDescriptionstatic ChronoElement<Integer>AnnualDate.DAY_OF_MONTHElement with the day of month in the value range1-28/29/30/31.static ChronoElement<Integer>Moment.FRACTIONRepresents the nano-fraction of current second.static ChronoElement<Integer>AnnualDate.MONTH_AS_NUMBERElement with the calendar month in numerical form and the value range1-12.static ChronoElement<Month>AnnualDate.MONTH_OF_YEARElement with the calendar month as enum in the value rangeJANUARY-DECEMBER).static ChronoElement<Long>Moment.POSIX_TIMERepresents the POSIX-time in seconds since UNIX-epoch.static ChronoElement<TimeUnit>Moment.PRECISIONRepresents the precision.static ChronoElement<ClockUnit>PlainTime.PRECISIONDefines the precision as the smallest non-zero time element and truncates time parts of higher precision if necessary.Methods in net.time4j with parameters of type ChronoElementModifier and TypeMethodDescriptionbooleanGeneralTimestamp.contains(ChronoElement<?> element)booleanZonalDateTime.contains(ChronoElement<?> element)<V> VGeneralTimestamp.get(ChronoElement<V> element)<V> VZonalDateTime.get(ChronoElement<V> element)intGeneralTimestamp.getInt(ChronoElement<Integer> element)intZonalDateTime.getInt(ChronoElement<Integer> element)<V> VGeneralTimestamp.getMaximum(ChronoElement<V> element)<V> VZonalDateTime.getMaximum(ChronoElement<V> element)<V> VGeneralTimestamp.getMinimum(ChronoElement<V> element)<V> VZonalDateTime.getMinimum(ChronoElement<V> element) -
Uses of ChronoElement in net.time4j.calendar
Subinterfaces of ChronoElement in net.time4j.calendarModifier and TypeInterfaceDescriptioninterfaceThe element for the ordinal weekday in month.interfaceStdCalendarElement<V,T>Extends a chronological element by some standard ways of manipulation.Fields in net.time4j.calendar declared as ChronoElementModifier and TypeFieldDescriptionstatic ChronoElement<Meridiem>EthiopianTime.AM_PM_OF_DAYBehaves likePlainTime.AM_PM_OF_DAY.static ChronoElement<Integer>HistoricCalendar.CENTURY_OF_ERARepresents the historic century.static ChronoElement<HebrewTime.ClockCycle>HebrewTime.CLOCK_CYCLEMarks the period between either sunset and sunrise (NIGHT) or sunrise and sunset (DAY).static ChronoElement<Integer>ChineseCalendar.CYCLERepresents the cycle number related to the introduction of sexagesimal cycles by the legendary yellow emperor Huang-Di on -2636-02-15 (gregorian).static ChronoElement<Integer>KoreanCalendar.CYCLERepresents the cycle number related to the introduction of sexagesimal cycles by the legendary yellow emperor Huang-Di on -2636-02-15 (gregorian).static ChronoElement<Integer>VietnameseCalendar.CYCLERepresents the cycle number related to the introduction of sexagesimal cycles by the legendary Chinese yellow emperor Huang-Di on -2636-02-15 (gregorian).static ChronoElement<HistoricDate>JulianCalendar.DATERepresents the Julian date.static ChronoElement<Integer>JulianCalendar.DAY_OF_MONTHRepresents the Julian day of month.static ChronoElement<Weekday>JulianCalendar.DAY_OF_WEEKRepresents the Julian day of week.static ChronoElement<Integer>JulianCalendar.DAY_OF_YEARRepresents the Julian day of year.static ChronoElement<Integer>EthiopianTime.DIGITAL_HOUR_OF_DAYBehaves likePlainTime.DIGITAL_HOUR_OF_DAYwith the hour range 0-23.static ChronoElement<ChineseEra>ChineseCalendar.ERARepresents the Chinese era.static ChronoElement<CopticEra>CopticCalendar.ERARepresents the Coptic era.static ChronoElement<EthiopianEra>EthiopianCalendar.ERARepresents the Ethiopian era.static ChronoElement<HebrewEra>HebrewCalendar.ERARepresents the Hebrew era.static ChronoElement<HijriEra>HijriCalendar.ERARepresents the islamic era.static ChronoElement<HistoricEra>HistoricCalendar.ERARepresents the historic era.static ChronoElement<IndianEra>IndianCalendar.ERARepresents the Indian era.static ChronoElement<JucheEra>JucheCalendar.ERARepresents the Juche era which cannot be changed.static ChronoElement<HistoricEra>JulianCalendar.ERARepresents the Julian era.static ChronoElement<KoreanEra>KoreanCalendar.ERARepresents the Korean era.static ChronoElement<MinguoEra>MinguoCalendar.ERARepresents the Minguo era which cannot be changed.static ChronoElement<PersianEra>PersianCalendar.ERARepresents the Persian era.static ChronoElement<ThaiSolarEra>ThaiSolarCalendar.ERARepresents the Thai era.static ChronoElement<Integer>EthiopianTime.ETHIOPIAN_HOURThe Ethiopian hour with the range 1-12 which is 6 hours behind the western clock.static ChronoElement<Evangelist>EthiopianCalendar.EVANGELISTRepresents the evangelist associated with a year of the Ethiopian leap year cycle.static ChronoElement<PlainTime>EthiopianTime.ISO_TIMEBehaves likePlainTime.COMPONENTand serves for conversion.static ChronoElement<Integer>JapaneseCalendar.KOKI_YEARCounts the years since the supposed foundation date of Japan by the legendary emperor Jimmu.static ChronoElement<Integer>EthiopianTime.MINUTE_OF_HOURThe minute of hour with the range 0-59.static ChronoElement<Integer>CommonElements.RELATED_GREGORIAN_YEARRepresents the related gregorian year which corresponds to the start of any given non-gregorian calendar year.static ChronoElement<Integer>EthiopianTime.SECOND_OF_MINUTEThe second of minute with the range 0-59.static ChronoElement<SolarTerm>ChineseCalendar.SOLAR_TERMRepresents the solar term as one of 24 possible stations of the sun on the ecliptic.static ChronoElement<SolarTerm>KoreanCalendar.SOLAR_TERMRepresents the solar term as one of 24 possible stations of the sun on the ecliptic.static ChronoElement<SolarTerm>VietnameseCalendar.SOLAR_TERMRepresents the solar term as one of 24 possible stations of the sun on the ecliptic.static ChronoElement<Integer>JulianCalendar.YEAR_OF_ERARepresents the Julian year.static ChronoElement<Integer>KoreanCalendar.YEAR_OF_ERARepresents the Korean year related to the Korean era.Methods in net.time4j.calendar with parameters of type ChronoElementModifier and TypeMethodDescriptionbooleanPersianCalendar.Date.contains(ChronoElement<?> element)<V> VPersianCalendar.Date.get(ChronoElement<V> element)intPersianCalendar.Date.getInt(ChronoElement<Integer> element)<V> VPersianCalendar.Date.getMaximum(ChronoElement<V> element)<V> VPersianCalendar.Date.getMinimum(ChronoElement<V> element) -
Uses of ChronoElement in net.time4j.calendar.bahai
Fields in net.time4j.calendar.bahai declared as ChronoElementModifier and TypeFieldDescriptionstatic ChronoElement<BadiIntercalaryDays>BadiCalendar.AYYAM_I_HARepresents the period of intercalary days if available.static ChronoElement<BadiEra>BadiCalendar.ERARepresents the Bahai era.static ChronoElement<Integer>BadiCalendar.KULL_I_SHAIRepresents the major cycle (kull-i-shai).Methods in net.time4j.calendar.bahai with parameters of type ChronoElementModifier and TypeMethodDescriptionbooleanBadiCalendar.contains(ChronoElement<?> element)<V> booleanBadiCalendar.isValid(ChronoElement<V> element, V value) -
Uses of ChronoElement in net.time4j.calendar.frenchrev
Fields in net.time4j.calendar.frenchrev declared as ChronoElementModifier and TypeFieldDescriptionstatic ChronoElement<DayOfDecade>FrenchRepublicanCalendar.DAY_OF_DECADERepresents the days of decade which consists of ten days.static ChronoElement<FrenchRepublicanEra>FrenchRepublicanCalendar.ERARepresents the Republican era of the French revolution.static ChronoElement<Sansculottides>FrenchRepublicanCalendar.SANSCULOTTIDESRepresents the complementary days of the French revolutionary calendar.Methods in net.time4j.calendar.frenchrev with parameters of type ChronoElementModifier and TypeMethodDescriptionbooleanFrenchRepublicanCalendar.contains(ChronoElement<?> element)booleanFrenchRepublicanCalendar.Date.contains(ChronoElement<?> element)<V> VFrenchRepublicanCalendar.Date.get(ChronoElement<V> element)intFrenchRepublicanCalendar.Date.getInt(ChronoElement<Integer> element)<V> VFrenchRepublicanCalendar.Date.getMaximum(ChronoElement<V> element)<V> VFrenchRepublicanCalendar.Date.getMinimum(ChronoElement<V> element)<V> booleanFrenchRepublicanCalendar.isValid(ChronoElement<V> element, V value) -
Uses of ChronoElement in net.time4j.calendar.hindu
Subinterfaces of ChronoElement in net.time4j.calendar.hinduModifier and TypeInterfaceDescriptioninterfaceAdjustableTextElement<V extends HinduPrimitive>Extends a chronological element by some standard ways of manipulation.Fields in net.time4j.calendar.hindu declared as ChronoElementModifier and TypeFieldDescriptionstatic ChronoElement<HinduEra>HinduCalendar.ERARepresents the Hindu era. -
Uses of ChronoElement in net.time4j.engine
Classes in net.time4j.engine that implement ChronoElementModifier and TypeClassDescriptionclassBasicElement<V extends Comparable<V>>Abstract base implementation of a chronological element which has a name and can also define an (unregistered) element rule.classDefines elements based on different epoch-related day numbers.classA specialized element for indicating special state during parsing.classA specialized element for communicating validation failures during parsing.Methods in net.time4j.engine that return ChronoElementModifier and TypeMethodDescriptionTimeAxis.element()Yields this time axis as chronological self-referencing element.ElementRule.getChildAtCeiling(T context)Yields the child element whose value is to be set to the maximum value.ElementRule.getChildAtFloor(T context)Yields the child element whose value is to be set to the minimum value.Methods in net.time4j.engine that return types with arguments of type ChronoElementModifier and TypeMethodDescriptionSet<ChronoElement<?>>ChronoExtension.getElements(Locale locale, AttributeQuery attributes)Returns the element set for given configuration.Set<ChronoElement<?>>BridgeChronology.getRegisteredElements()Set<ChronoElement<?>>ChronoEntity.getRegisteredElements()Yields all registered elements of this instance.Set<ChronoElement<?>>Chronology.getRegisteredElements()Returns all registered chronological elements.Methods in net.time4j.engine with parameters of type ChronoElementModifier and TypeMethodDescription<V> CalendarFamily.Builder<T>CalendarFamily.Builder.appendElement(ChronoElement<V> element, ElementRule<T,V> rule)<V> Chronology.Builder<T>Chronology.Builder.appendElement(ChronoElement<V> element, ElementRule<T,V> rule)Registers a new element together with its associated element rule.<V> TimeAxis.Builder<U,T>TimeAxis.Builder.appendElement(ChronoElement<V> element, ElementRule<T,V> rule)<V> TimeAxis.Builder<U,T>TimeAxis.Builder.appendElement(ChronoElement<V> element, ElementRule<T,V> rule, U baseUnit)Registers a new element with associated rule and a base unit.static <T extends ChronoEntity<T>>
ChronoOperator<T>StdOperator.atCeiling(ChronoElement<?> element)Yields an operator which rounds any entity up so that the child elements will be set to the maximum.static <T extends ChronoEntity<T>>
ChronoOperator<T>StdOperator.atFloor(ChronoElement<?> element)Yields an operator which rounds any entity down so that the child elements will be set to the minimum.default booleanChronoExtension.canResolve(ChronoElement<?> element)Gives a hint to the parser if the element in question can be resolved byresolve().booleanChronoDisplay.contains(ChronoElement<?> element)Queries if the value for given chronological element can be accessed viaget(element).booleanChronoEntity.contains(ChronoElement<?> element)static <T extends ChronoEntity<T>>
ChronoOperator<T>StdOperator.decremented(ChronoElement<?> element)Yields a new operator which can set any entity such that its actual element value gets the decremented value.<V> VChronoDisplay.get(ChronoElement<V> element)Returns the partial value associated with given chronological element.<V> VChronoEntity.get(ChronoElement<V> element)TimeAxis.getBaseUnit(ChronoElement<?> element)Returns the base unit of given element if available.default intChronoDisplay.getInt(ChronoElement<Integer> element)Returns the partial value associated with given chronological element.intChronoEntity.getInt(ChronoElement<Integer> element)<V> VChronoDisplay.getMaximum(ChronoElement<V> element)Yields the maximum value of given chronological element in the current context of this object.<V> VChronoEntity.getMaximum(ChronoElement<V> element)<V> VChronoDisplay.getMinimum(ChronoElement<V> element)Yields the minimum value of given chronological element in the current context of this object.<V> VChronoEntity.getMinimum(ChronoElement<V> element)booleanTimeAxis.hasBaseUnit(ChronoElement<?> element)Queries if given element has a base unit.static <T extends ChronoEntity<T>>
ChronoOperator<T>StdOperator.incremented(ChronoElement<?> element)Yields a new operator which can set any entity such that its actual element value gets the incremented value.booleanChronology.isRegistered(ChronoElement<?> element)Queries if given chronological element is registered together with its element rule.booleanBridgeChronology.isSupported(ChronoElement<?> element)This chronology does not itself support any elements.booleanCalendarFamily.isSupported(ChronoElement<?> element)booleanChronology.isSupported(ChronoElement<?> element)Queries if given chronological element is supported by this chronology.booleanChronoEntity.isValid(ChronoElement<Integer> element, int value)Tests if the value for given chronological value is invalid.booleanChronoEntity.isValid(ChronoElement<Long> element, long value)Tests if the value for given chronological value is invalid.<V> booleanChronoEntity.isValid(ChronoElement<V> element, V value)Tests if the value for given chronological value is invalid.static <T extends ChronoEntity<T>>
ChronoOperator<T>StdOperator.maximized(ChronoElement<?> element)Yields a new operator which can set any entity to its maximum element value.static <T extends ChronoEntity<T>>
ChronoOperator<T>StdOperator.minimized(ChronoElement<?> element)Yields a new operator which can set any entity to its minimum element value.static <T extends ChronoEntity<T>, V>
ChronoOperator<T>StdOperator.newValue(V value, ChronoElement<V> element)Yields an operator which sets any entity such that its actual element value will be set in normal mode to given value.static <T extends ChronoEntity<T>, V>
ChronoOperator<T>StdOperator.setLenient(V value, ChronoElement<V> element)Yields an operator which sets any entity such that its actual element value will be set in lenient mode to given value.ChronoEntity.with(ChronoElement<Integer> element, int value)Creates a copy of this instance with the changed element value.ChronoEntity.with(ChronoElement<Long> element, long value)Creates a copy of this instance with the changed element value.<V> TChronoEntity.with(ChronoElement<V> element, V value)Creates a copy of this instance with the changed element value. -
Uses of ChronoElement in net.time4j.format
Subinterfaces of ChronoElement in net.time4j.formatModifier and TypeInterfaceDescriptioninterfaceNumericalElement<V extends Enum<V>>A chronological element which allows a numerical representation.interfaceTextElement<V>A chronological element which can be formatted as text or can be parsed from a text.Classes in net.time4j.format that implement ChronoElementModifier and TypeClassDescriptionclassDisplayElement<V extends Comparable<V>>Standard element which offers localized names for display purposes (in most cases).Methods in net.time4j.format with parameters of type ChronoElementModifier and TypeMethodDescription<V extends Enum<V>>
TextAccessorCalendarText.getTextForms(ChronoElement<V> element, String... variants)Yields anAccessorfor all text forms of given chronological element. -
Uses of ChronoElement in net.time4j.format.expert
Methods in net.time4j.format.expert that return ChronoElementModifier and TypeMethodDescriptionElementPosition.getElement()Yields the formatted chronolocial element.Methods in net.time4j.format.expert with parameters of type ChronoElementModifier and TypeMethodDescription<V extends ChronoEntity<V>>
ChronoFormatter.Builder<T>ChronoFormatter.Builder.addCustomized(ChronoElement<V> element, ChronoFormatter<V> formatter)Defines a customized format element for given chronological element.<V> ChronoFormatter.Builder<T>ChronoFormatter.Builder.addCustomized(ChronoElement<V> element, ChronoPrinter<V> printer, ChronoParser<V> parser)Defines a customized format element for given chronological element.ChronoFormatter.Builder.addEnglishOrdinal(ChronoElement<Integer> element)Defines an ordinal format for given chronological element in english language.ChronoFormatter.Builder.addFixedDecimal(ChronoElement<BigDecimal> element)Equivalent toaddFixedDecimal(element, 11, 9).ChronoFormatter.Builder.addFixedDecimal(ChronoElement<BigDecimal> element, int precision, int scale)Defines a fixed unsigned decimal format for given chronological element.ChronoFormatter.Builder.addFixedInteger(ChronoElement<Integer> element, int digits)Defines an integer format without sign and with fixed width for given chronological element.<V extends Enum<V>>
ChronoFormatter.Builder<T>ChronoFormatter.Builder.addFixedNumerical(ChronoElement<V> element, int digits)Defines an integer format without sign and with fixed width for given chronological enumeration element.ChronoFormatter.Builder.addFraction(ChronoElement<Integer> element, int minDigits, int maxDigits, boolean decimalSeparator)Defines a fractional format for given chronological element including a possible decimal separator char but without any integer part by mapping the context-dependent value range to the interval [0.0-1.0).ChronoFormatter.Builder.addInteger(ChronoElement<Integer> element, int minDigits, int maxDigits)Defines an integer format without sign for given chronological element.ChronoFormatter.Builder.addInteger(ChronoElement<Integer> element, int minDigits, int maxDigits, SignPolicy signPolicy)Defines an integer format for given chronological element.ChronoFormatter.Builder.addLongNumber(ChronoElement<Long> element, int minDigits, int maxDigits, SignPolicy signPolicy)Defines an integer format for given chronological element.<V extends Enum<V>>
ChronoFormatter.Builder<T>ChronoFormatter.Builder.addNumerical(ChronoElement<V> element, int minDigits, int maxDigits)Defines an integer format without sign for given chronological enumeration element.ChronoFormatter.Builder.addOrdinal(ChronoElement<Integer> element, Map<PluralCategory,String> indicators)Defines an ordinal format for given chronological element.<V extends Enum<V>>
ChronoFormatter.Builder<T>ChronoFormatter.Builder.addText(ChronoElement<V> element)Defines a text format for given chronological element.<V extends Enum<V>>
ChronoFormatter.Builder<T>ChronoFormatter.Builder.addText(ChronoElement<V> element, Function<V,String> converter)Defines a text format for given chronological element with a user-defined string conversion.<V> ChronoFormatter.Builder<T>ChronoFormatter.Builder.addText(ChronoElement<V> element, Map<V,String> lookup)Defines a text format for given chronological element with user-defined string resources.ChronoFormatter.Builder.addTwoDigitYear(ChronoElement<Integer> element)Defines a special format element for a two-digit-year.<V> ChronoFormatter.Builder<T>ChronoFormatter.Builder.setDefault(ChronoElement<V> element, V value)Defines a default value if the parser has not parsed or found a value for given element.<V> ChronoFormatter.Builder<T>ChronoFormatter.Builder.setDefaultSupplier(ChronoElement<V> element, Supplier<V> supplier)Defines a supplier for a default value if the parser has not parsed or found a value for given element.<V> ChronoFormatter<T>ChronoFormatter.withDefault(ChronoElement<V> element, V value)Determines a default replacement value for given element.<V> ChronoFormatter<T>ChronoFormatter.withDefaultSource(ChronoElement<V> element, ChronoElement<V> source)Determines a source reference in parsed data for a default replacement value of given element.<V> ChronoFormatter<T>ChronoFormatter.withDefaultSupplier(ChronoElement<V> element, Supplier<V> supplier)Determines a supplier for a default replacement value of given element.Constructors in net.time4j.format.expert with parameters of type ChronoElementModifierConstructorDescriptionElementPosition(ChronoElement<?> element, int startIndex, int endIndex)Creates a new instance of anElementPosition. -
Uses of ChronoElement in net.time4j.history
Methods in net.time4j.history that return ChronoElementModifier and TypeMethodDescriptionChronoHistory.centuryOfEra()Defines the element for the century of a year in a given historic era.ChronoHistory.date()Defines the element for the historic date.ChronoHistory.dayOfMonth()Defines the element for the historic day of month.ChronoHistory.dayOfYear()Defines the element for the historic day of year.ChronoHistory.era()Defines the element for the historic era.ChronoHistory.yearOfEra(YearDefinition yearDefinition)Defines the element for the year of a given historic era.Methods in net.time4j.history that return types with arguments of type ChronoElementModifier and TypeMethodDescriptionSet<ChronoElement<?>>ChronoHistory.getElements()Yields all associated elements. -
Uses of ChronoElement in net.time4j.range
Fields in net.time4j.range declared as ChronoElementModifier and TypeFieldDescriptionstatic ChronoElement<Weekday>SpanOfWeekdays.ENDDenotes the end of this span of weekdays (inclusive).static ChronoElement<Integer>CalendarMonth.MONTH_AS_NUMBERElement with the month as number in the value range1 - 12.static ChronoElement<Month>CalendarMonth.MONTH_OF_YEARElement with the month of year in the value rangeJanuary - December.static ChronoElement<Quarter>CalendarQuarter.QUARTER_OF_YEARElement with the quarter of year in the value rangeQ1-Q4.static ChronoElement<Weekday>SpanOfWeekdays.STARTDenotes the start of this span of weekdays.static ChronoElement<Integer>CalendarWeek.WEEK_OF_YEARElement with the week of year in the value range1-52/53.static ChronoElement<Integer>CalendarMonth.YEARElement with the proleptic iso-year without any era reference and the value range-999999999until999999999.static ChronoElement<Integer>CalendarQuarter.YEARElement with the proleptic iso-year without any era reference and the value range-999999999until999999999.static ChronoElement<Integer>CalendarYear.YEARElement with the proleptic iso-year without any era reference and the value range-999999999until999999999.static ChronoElement<Integer>CalendarWeek.YEAR_OF_WEEKDATEDefines an element for the week-based year in an ISO-8601-weekdate.