| Package | Description |
|---|---|
| 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.
|
| net.time4j.format.expert |
This package contains the expert-level format- and parse engine of Time4J.
|
| net.time4j.format.platform |
Temporal formatters which access the platform specific resources.
|
| Modifier and Type | Method and Description |
|---|---|
T |
TimeAxis.createFrom(ChronoEntity<?> entity,
AttributeQuery attributes,
boolean lenient,
boolean preparsing) |
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) |
T |
ChronoMerger.createFrom(TimeSource<?> clock,
AttributeQuery attributes)
Creates a new entity which reflects current time.
|
T |
Chronology.createFrom(TimeSource<?> clock,
AttributeQuery attributes) |
S |
BridgeChronology.createFrom(TimeSource<?> clock,
AttributeQuery attributes) |
Set<ChronoElement<?>> |
ChronoExtension.getElements(Locale locale,
AttributeQuery attributes)
Returns the element set for given configuration.
|
ChronoDisplay |
BridgeChronology.preformat(S context,
AttributeQuery attributes) |
default ChronoDisplay |
ChronoMerger.preformat(T context,
AttributeQuery attributes)
Transforms the current context/entity into another set of chronological
values which finally shall be formatted using given attributes.
|
ChronoDisplay |
Chronology.preformat(T context,
AttributeQuery attributes) |
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 | Class and Description |
|---|---|
class |
Attributes
A collection of format attributes for controlling the formatting
and parsing.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeQuery |
TemporalFormatter.getAttributes()
Determines all global format attributes if available.
|
| Modifier and Type | Method and Description |
|---|---|
V |
TextElement.parse(CharSequence text,
ParsePosition status,
AttributeQuery attributes)
Interpretes the given text as element value.
|
<V extends Enum<V>> |
TextAccessor.parse(CharSequence parseable,
ParsePosition status,
Class<V> valueType,
AttributeQuery attributes)
Interpretes given text form as enum-based element value.
|
void |
TextElement.print(ChronoDisplay context,
Appendable buffer,
AttributeQuery attributes)
Converts the element value in given context to a formatted text.
|
default int |
NumericalElement.printToInt(V value,
ChronoDisplay context,
AttributeQuery attributes)
Translates given element value to a numerical integer.
|
| Modifier and Type | Method and Description |
|---|---|
default AttributeQuery |
ChronoPrinter.getAttributes()
Returns the global format attributes which are active if they are not
overridden by sectional attributes.
|
default AttributeQuery |
ChronoParser.getAttributes()
Returns the global format attributes which are active if they are not
overridden by sectional attributes.
|
AttributeQuery |
ChronoFormatter.getAttributes()
Returns the global format attributes which are active if they are not
overridden by sectional attributes.
|
| Modifier and Type | Method and Description |
|---|---|
T |
MultiFormatParser.parse(CharSequence text,
ParseLog status,
AttributeQuery attributes) |
T |
ChronoParser.parse(CharSequence text,
ParseLog status,
AttributeQuery attributes)
Interpretes given text as chronological entity starting
at the specified position in parse log.
|
T |
ChronoFormatter.parse(CharSequence text,
ParseLog status,
AttributeQuery attributes)
Interpretes given text as chronological entity starting
at the specified position in parse log.
|
Set<ElementPosition> |
ChronoFormatter.print(T formattable,
Appendable buffer,
AttributeQuery attributes)
Prints given chronological entity as formatted text and writes
the text into given buffer.
|
Set<ElementPosition> |
ChronoPrinter.print(T formattable,
StringBuilder buffer,
AttributeQuery attributes)
Prints given chronological entity as formatted text and writes
the text into given buffer.
|
Set<ElementPosition> |
ChronoFormatter.print(T formattable,
StringBuilder buffer,
AttributeQuery attributes) |
| Modifier and Type | Method and Description |
|---|---|
AttributeQuery |
SimpleFormatter.getAttributes() |
Copyright © 2014–2021. All rights reserved.