| 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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AttributeQuery.contains(AttributeKey<?> key)
Queries if a format attribute exists for given key.
|
<A> A |
AttributeQuery.get(AttributeKey<A> key)
Yields a format attribute for given key.
|
<A> A |
AttributeQuery.get(AttributeKey<A> key,
A defaultValue)
Yields a format attribute for given key.
|
| Modifier and Type | Field and Description |
|---|---|
static AttributeKey<String> |
Attributes.CALENDAR_TYPE
Attribute for the calendar type.
|
static AttributeKey<String> |
Attributes.CALENDAR_VARIANT
Defines an attribute key which can be used in queries for the calendar variant.
|
static AttributeKey<Character> |
Attributes.DECIMAL_SEPARATOR
Determines the unicode char for the decimal separator.
|
static AttributeKey<Locale> |
Attributes.LANGUAGE
Attribute controlling the language output and parsing of
chronological texts (for example month names).
|
static AttributeKey<Leniency> |
Attributes.LENIENCY
Attribute which controls the leniency in parsing.
|
static AttributeKey<OutputContext> |
Attributes.OUTPUT_CONTEXT
Determines the output context to be used in formatting and
parsing.
|
static AttributeKey<Character> |
Attributes.PAD_CHAR
Determines the pad char to be used if a formatted representation is
shorter than specified.
|
static AttributeKey<Boolean> |
Attributes.PARSE_CASE_INSENSITIVE
This attribute controls if the case of text is irrelevant
in parsing or not.
|
static AttributeKey<Boolean> |
Attributes.PARSE_PARTIAL_COMPARE
This attribute controls if the parser will only check the
start of a chronological text.
|
static AttributeKey<Integer> |
Attributes.PIVOT_YEAR
Determines the pivot year for the representation of
two-digit-years.
|
static AttributeKey<Integer> |
Attributes.PROTECTED_CHARACTERS
Determines how many remaining chars in a given text are reserved
and cannot be consumed by the current format step.
|
static AttributeKey<StartOfDay> |
Attributes.START_OF_DAY
Defines an attribute key which can be used in queries for the start of day during formatting or parsing.
|
static AttributeKey<TextWidth> |
Attributes.TEXT_WIDTH
Determines the text width to be used in formatting and parsing.
|
static AttributeKey<TZID> |
Attributes.TIMEZONE_ID
Attribute denoting the timezone identifier for display purposes.
|
static AttributeKey<Boolean> |
Attributes.TRAILING_CHARACTERS
Controls if any trailing unparsed characters will be
tolerated or not.
|
static AttributeKey<TransitionStrategy> |
Attributes.TRANSITION_STRATEGY
Attribute for the conflict strategy to be used in resolving
ambivalent or invalid local timestamps.
|
static AttributeKey<Character> |
Attributes.ZERO_DIGIT
Determines the unicode char for the zero digit..
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Attributes.contains(AttributeKey<?> key) |
<A> A |
Attributes.get(AttributeKey<A> key) |
<A> A |
Attributes.get(AttributeKey<A> key,
A defaultValue) |
Attributes.Builder |
Attributes.Builder.remove(AttributeKey<?> key)
Removes the specified attribute.
|
<A extends Enum<A>> |
Attributes.Builder.set(AttributeKey<A> key,
A value)
Sets an attribute of
enum-type. |
Attributes.Builder |
Attributes.Builder.set(AttributeKey<Boolean> key,
boolean value)
Sets an attribute of
boolean-type. |
Attributes.Builder |
Attributes.Builder.set(AttributeKey<Character> key,
char value)
Sets an attribute of
char-type. |
Attributes.Builder |
Attributes.Builder.set(AttributeKey<Integer> key,
int value)
Sets an attribute of
int-type. |
Copyright © 2014–2015. All rights reserved.