| 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 | Class and Description |
|---|---|
class |
Moment
Represents an instant/moment on the universal timeline with reference
to the timezone UTC (UTC+00:00 / Greenwich-meridian).
|
class |
PlainDate
Represents a plain calendar date in conformance to ISO-8601-standard using the gregorian calendar rules
for all times.
|
class |
PlainTime
Represents a plain wall time without any timezone or date component
as defined in ISO-8601 up to nanosecond precision.
|
class |
PlainTimestamp
Represents a plain composition of calendar date and wall time as defined
in ISO-8601, but without any timezone.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends ChronoEntity<T>> |
ZonalClock.now(Chronology<T> chronology)
Gets the current timestamp in the associated timezone and given chronology.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoFunction<ChronoEntity<?>,BigDecimal> |
ProportionalElement.ratio()
Defines a query which interpretes the value of this element as
proportional rational number within the range between minimum and
maximum.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BridgeChronology<S,T extends ChronoEntity<T>>
Represents a foreign chronology which delegates formatting and parsing to a chronology in Time4J.
|
class |
ChronoEntity<T extends ChronoEntity<T>>
Represents a temporal object which associates partial temporal values
with chronological elements and also allows some manipulations of these
element values.
|
static class |
Chronology.Builder<T extends ChronoEntity<T>>
Builder for creating a new chronology without any time axis.
|
class |
StdOperator<T extends ChronoEntity<T>>
Factory for producing standard chronological operators which are applicable
on most chronological entities.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CalendarVariant<D extends CalendarVariant<D>>
Represents an immutable calendar variant.
|
class |
Calendrical<U,D extends Calendrical<U,D>>
Abstract base class of all plain calendar date types which are
convertible via their day epoch numbers.
|
class |
TimePoint<U,T extends TimePoint<U,T>>
Represents an immutable time point along a time axis which is directed
into the future.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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.
|
static <T extends ChronoEntity<T>> |
Chronology.lookup(Class<T> chronoType)
Returns a typed singleton per
ChronoEntity-class. |
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.
|
static <T extends ChronoEntity<T>> |
Chronology.Builder.setUp(Class<T> chronoType,
ChronoMerger<T> chronoMerger)
Creates a builder for building a new chronological system.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoEntity<?> |
ChronoExtension.resolve(ChronoEntity<?> entity,
Locale locale,
AttributeQuery attributes)
Updates the given value source if necessary in order to resolve
the values of extension elements to values of standard elements.
|
| Modifier and Type | Method and Description |
|---|---|
T |
TimeAxis.createFrom(ChronoEntity<?> entity,
AttributeQuery attributes,
boolean preparsing)
Deprecated.
|
T |
ChronoMerger.createFrom(ChronoEntity<?> entity,
AttributeQuery attributes,
boolean preparsing)
Deprecated.
|
T |
Chronology.createFrom(ChronoEntity<?> entity,
AttributeQuery attributes,
boolean preparsing)
Deprecated.
|
S |
BridgeChronology.createFrom(ChronoEntity<?> entity,
AttributeQuery attributes,
boolean preparsing)
Deprecated.
|
T |
TimeAxis.createFrom(ChronoEntity<?> entity,
AttributeQuery attributes,
boolean lenient,
boolean preparsing) |
default T |
ChronoMerger.createFrom(ChronoEntity<?> entity,
AttributeQuery attributes,
boolean lenient,
boolean preparsing)
Creates a new entity of type T based on given chronological data.
|
T |
Chronology.createFrom(ChronoEntity<?> entity,
AttributeQuery attributes,
boolean lenient,
boolean preparsing) |
S |
BridgeChronology.createFrom(ChronoEntity<?> entity,
AttributeQuery attributes,
boolean lenient,
boolean preparsing) |
ChronoEntity<?> |
ChronoExtension.resolve(ChronoEntity<?> entity,
Locale locale,
AttributeQuery attributes)
Updates the given value source if necessary in order to resolve
the values of extension elements to values of standard elements.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends ChronoEntity<T>> |
FormatEngine.create(Class<T> chronoType,
String formatPattern,
P patternType,
Locale locale)
Creates a new temporal format object applicable on given chronological type.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
NumericalElement.parseFromInt(ChronoEntity<?> entity,
int value)
Converts and stores given integer into the result buffer.
|
Copyright © 2014–2017. All rights reserved.