| 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 |
Defines common interfaces for any 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<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.
|
static ChronoElement<TimeUnit> |
Moment.PRECISION
Represents the precision.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ZonalDateTime.contains(ChronoElement<?> element) |
boolean |
GeneralTimestamp.contains(ChronoElement<?> element) |
<V> V |
ZonalDateTime.get(ChronoElement<V> element) |
<V> V |
GeneralTimestamp.get(ChronoElement<V> element) |
int |
ZonalDateTime.getInt(ChronoElement<Integer> element) |
int |
GeneralTimestamp.getInt(ChronoElement<Integer> element) |
<V> V |
ZonalDateTime.getMaximum(ChronoElement<V> element) |
<V> V |
GeneralTimestamp.getMaximum(ChronoElement<V> element) |
<V> V |
ZonalDateTime.getMinimum(ChronoElement<V> element) |
<V> V |
GeneralTimestamp.getMinimum(ChronoElement<V> element) |
| Modifier and Type | Class and Description |
|---|---|
class |
BasicElement<V extends Comparable<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.
|
class |
FlagElement
A specialized element for indicating special state during parsing.
|
class |
ValidationElement
A specialized element for communicating validation failures
during parsing.
|
| 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.
|
Set<ChronoElement<?>> |
ChronoEntity.getRegisteredElements()
Yields all registered elements of this instance.
|
Set<ChronoElement<?>> |
BridgeChronology.getRegisteredElements() |
| 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> CalendarFamily.Builder<T> |
CalendarFamily.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>> |
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>> |
StdOperator.atFloor(ChronoElement<?> element)
Yields an operator which rounds any entity down so that the child
elements will be set to the minimum.
|
boolean |
ChronoEntity.contains(ChronoElement<?> element) |
boolean |
ChronoDisplay.contains(ChronoElement<?> element)
Queries if the value for given chronological element can be
accessed via
get(element). |
static <T extends ChronoEntity<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> 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.
|
int |
ChronoEntity.getInt(ChronoElement<Integer> element) |
default int |
ChronoDisplay.getInt(ChronoElement<Integer> element)
Returns the partial value associated with given chronological element.
|
<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.
|
static <T extends ChronoEntity<T>> |
StdOperator.incremented(ChronoElement<?> element)
Yields a new operator which can set any entity such that its
actual element value gets the incremented value.
|
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 |
CalendarFamily.isSupported(ChronoElement<?> element) |
boolean |
BridgeChronology.isSupported(ChronoElement<?> element)
This chronology does not itself support any elements.
|
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.
|
static <T extends ChronoEntity<T>> |
StdOperator.maximized(ChronoElement<?> element)
Yields a new operator which can set any entity to its maximum
element value.
|
static <T extends ChronoEntity<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> |
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> |
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.
|
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 | Class and Description |
|---|---|
class |
DisplayElement<V extends Comparable<V>>
Standard element which offers localized names for display purposes (in most cases).
|
| Modifier and Type | Method and Description |
|---|---|
<V extends Enum<V>> |
CalendarText.getTextForms(ChronoElement<V> element,
String... variants)
Yields an
Accessor for all text forms of given
chronological element. |
Copyright © 2014–2017. All rights reserved.