| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.engine |
Defines the common generic schemes and interfaces of chronological
systems.
|
| net.time4j.format |
Format support of Time4J.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
AdjustableElement<V,T>
Extends a chronological element by some standard ways of
manipulation.
|
interface |
CalendarDateElement
Represents the calendar date.
|
interface |
NavigableElement<V extends Enum<V>>
Defines additional enum-based operators for setting new element values
taking into account the old element value.
|
interface |
OrdinalWeekdayElement
The element for the ordinal weekday in month.
|
interface |
ProportionalElement<V extends Number,T>
Defines an element which can interprete its value as proportional
value.
|
interface |
WallTimeElement
Represents the wall time.
|
interface |
ZonalElement<V>
Extends a chronological element by some zonal queries.
|
| Modifier and Type | Field and Description |
|---|---|
static ChronoElement<BigDecimal> |
PlainTime.DECIMAL_HOUR
Decimal hour in the value range
0.0 inclusive until
24.0 inclusive. |
static ChronoElement<BigDecimal> |
PlainTime.DECIMAL_MINUTE
Decimal minute in the value range
0.0 inclusive until
60.0 exclusive. |
static ChronoElement<BigDecimal> |
PlainTime.DECIMAL_SECOND
Decimal second in the value range
0.0 inclusive until
60.0 exclusive. |
static ChronoElement<Integer> |
Moment.FRACTION
Represents the nano-fraction of current second.
|
static ChronoElement<Long> |
Moment.POSIX_TIME
Represents the POSIX-time in seconds since UNIX-epoch.
|
static ChronoElement<ClockUnit> |
PlainTime.PRECISION
Defines the precision as the smallest non-zero time element and
truncates time parts of higher precision if necessary.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ChronoElement<?>> |
PatternType.registerSymbol(ChronoFormatter.Builder<?> builder,
Locale locale,
char symbol,
int count) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ZonalMoment.contains(ChronoElement<?> element) |
<V> V |
ZonalMoment.get(ChronoElement<V> element) |
<V> V |
ZonalMoment.getMaximum(ChronoElement<V> element) |
<V> V |
ZonalMoment.getMinimum(ChronoElement<V> element) |
| Modifier and Type | Class and Description |
|---|---|
class |
AdvancedElement<V extends Comparable<V>>
Default implementation of a chronological element with some
element-related manipulation methods.
|
class |
BasicElement<V>
Abstract base implementation of a chronological element which has
a name and can also define an (unregistered) element rule.
|
class |
EpochDays
Defines elements based on different epoch-related day numbers.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoElement<T> |
TimeAxis.element()
Yields this time axis as chronological self-referencing
element.
|
ChronoElement<?> |
ElementRule.getChildAtCeiling(T context)
Yields the child element whose value is to be set to the maximum
value.
|
ChronoElement<?> |
ElementRule.getChildAtFloor(T context)
Yields the child element whose value is to be set to the minimum
value.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ChronoElement<?>> |
ChronoExtension.getElements(Locale locale,
AttributeQuery attributes)
Returns the element set for given configuration.
|
Set<ChronoElement<?>> |
Chronology.getRegisteredElements()
Returns all registered chronological elements.
|
| Modifier and Type | Method and Description |
|---|---|
<V> TimeAxis.Builder<U,T> |
TimeAxis.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,
U baseUnit)
Registers a new element with associated rule and a base
unit.
|
boolean |
ChronoEntity.contains(ChronoElement<?> element) |
boolean |
ChronoDisplay.contains(ChronoElement<?> element)
Queries if the value for given chronological element can be
accessed via
get(element). |
<V> V |
ChronoEntity.get(ChronoElement<V> element) |
<V> V |
ChronoDisplay.get(ChronoElement<V> element)
Returns the partial value associated with given chronological
element.
|
U |
TimeAxis.getBaseUnit(ChronoElement<?> element)
Returns the base unit of given element if available.
|
<V> V |
ChronoEntity.getMaximum(ChronoElement<V> element) |
<V> V |
ChronoDisplay.getMaximum(ChronoElement<V> element)
Yields the maximum value of given chronological element in the
current context of this object.
|
<V> V |
ChronoEntity.getMinimum(ChronoElement<V> element) |
<V> V |
ChronoDisplay.getMinimum(ChronoElement<V> element)
Yields the minimum value of given chronological element in the
current context of this object.
|
boolean |
TimeAxis.hasBaseUnit(ChronoElement<?> element)
Queries if given element has a base unit.
|
boolean |
Chronology.isRegistered(ChronoElement<?> element)
Queries if given chronological element is registered together
with its element rule.
|
boolean |
Chronology.isSupported(ChronoElement<?> element)
Queries if given chronological element is supported by this
chronology.
|
boolean |
ChronoEntity.isValid(ChronoElement<Integer> element,
int value)
Tests if the value for given chronological value is invalid.
|
boolean |
ChronoEntity.isValid(ChronoElement<Long> element,
long value)
Tests if the value for given chronological value is invalid.
|
<V> boolean |
ChronoEntity.isValid(ChronoElement<V> element,
V value)
Tests if the value for given chronological value is invalid.
|
T |
ChronoEntity.with(ChronoElement<Integer> element,
int value)
Creates a copy of this instance with the changed element value.
|
T |
ChronoEntity.with(ChronoElement<Long> element,
long value)
Creates a copy of this instance with the changed element value.
|
<V> T |
ChronoEntity.with(ChronoElement<V> element,
V value)
Creates a copy of this instance with the changed element value.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
NumericalElement<V>
A chronological element which allows a numerical representation.
|
interface |
TextElement<V>
A chronological element which can be formatted as text or can be parsed
from a text.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoElement<?> |
ElementPosition.getElement()
Yields the formatted chronolocial element.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ChronoElement<?>> |
ChronoPattern.registerSymbol(ChronoFormatter.Builder<?> builder,
Locale locale,
char symbol,
int count)
Registers a format symbol.
|
| Modifier and Type | Method and Description |
|---|---|
<V extends ChronoEntity<V>> |
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<T> |
ChronoFormatter.Builder.addEnglishOrdinal(ChronoElement<Integer> element)
Defines an ordinal format for given chronological
element in english language.
|
ChronoFormatter.Builder<T> |
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.addFixedNumerical(ChronoElement<V> element,
int digits)
Defines an integer format without sign and with fixed width
for given chronological enumeration element.
|
ChronoFormatter.Builder<T> |
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<T> |
ChronoFormatter.Builder.addInteger(ChronoElement<Integer> element,
int minDigits,
int maxDigits)
Defines an integer format without sign for given
chronological element.
|
ChronoFormatter.Builder<T> |
ChronoFormatter.Builder.addInteger(ChronoElement<Integer> element,
int minDigits,
int maxDigits,
SignPolicy signPolicy)
Defines an integer format for given chronological
element.
|
ChronoFormatter.Builder<T> |
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.addNumerical(ChronoElement<V> element,
int minDigits,
int maxDigits)
Defines an integer format without sign for given chronological
enumeration element.
|
ChronoFormatter.Builder<T> |
ChronoFormatter.Builder.addOrdinal(ChronoElement<Integer> element,
Map<PluralCategory,String> indicators)
Defines an ordinal format for given chronological
element.
|
<V extends Enum<V>> |
ChronoFormatter.Builder.addText(ChronoElement<V> element)
Defines a text format for given chronological element.
|
<V extends Enum<V>> |
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<T> |
ChronoFormatter.Builder.addTwoDigitYear(ChronoElement<Integer> element)
Defines a special format element for a two-digit-year.
|
<V extends Enum<V>> |
CalendarText.getTextForms(ChronoElement<V> element,
String... variants)
Yields an
Accessor for all text forms of given
chronological element. |
<V> ChronoFormatter<T> |
ChronoFormatter.withDefault(ChronoElement<V> element,
V value)
Determines a default replacement value for given element.
|
| Constructor and Description |
|---|
ElementPosition(ChronoElement<?> element,
int startIndex,
int endIndex)
Creates a new instance of an
ElementPosition. |
Copyright © 2014. All rights reserved.