| Package | Description |
|---|---|
| net.time4j.format.expert |
This package contains the expert-level format- and parse engine of Time4J.
|
| Modifier and Type | Field and Description |
|---|---|
static ChronoFormatter<PlainDate> |
Iso8601Format.BASIC_CALENDAR_DATE
Defines the basic ISO-8601-format with year, month and day
of month using the pattern "uuuuMMdd".
|
static ChronoFormatter<PlainDate> |
Iso8601Format.BASIC_DATE
Similar to
Iso8601Format.BASIC_CALENDAR_DATE but its parser can also
understand ordinal dates or week dates. |
static ChronoFormatter<PlainTimestamp> |
Iso8601Format.BASIC_DATE_TIME
Defines the basic ISO-8601-format for a composition of
calendar date and wall time with hour and minute using the pattern
"uuuuMMdd'T'HH[mm[ss[,SSSSSSSSS]]]".
|
static ChronoFormatter<Moment> |
Iso8601Format.BASIC_DATE_TIME_OFFSET
Defines the basic ISO-8601-format for a composition of
calendar date, wall time and timezone offset using the pattern
"uuuuMMdd'T'HH[mm[ss[,SSSSSSSSS]]]{offset}".
|
static ChronoFormatter<PlainDate> |
Iso8601Format.BASIC_ORDINAL_DATE
Defines the basic ISO-8601-format with year and day of year
using the pattern "uuuuDDD".
|
static ChronoFormatter<PlainTime> |
Iso8601Format.BASIC_WALL_TIME
Defines the basic ISO-8601-format for a wall time with
hour, minute and optional second using the pattern
"HH[mm[ss[,SSSSSSSSS]]]".
|
static ChronoFormatter<PlainDate> |
Iso8601Format.BASIC_WEEK_DATE
Defines the basic ISO-8601-format for a week date using
the pattern "YYYYWwwE".
|
static ChronoFormatter<PlainDate> |
Iso8601Format.EXTENDED_CALENDAR_DATE
Defines the extended ISO-8601-format with year, month and
day of month using the pattern "uuuu-MM-dd".
|
static ChronoFormatter<PlainDate> |
Iso8601Format.EXTENDED_DATE
Similar to
Iso8601Format.EXTENDED_CALENDAR_DATE but its parser can also
understand ordinal dates or week dates. |
static ChronoFormatter<PlainTimestamp> |
Iso8601Format.EXTENDED_DATE_TIME
Defines the extended ISO-8601-format for a composition of
calendar date and wall time with hour and minute using the pattern
"uuuu-MM-dd'T'HH[:mm[:ss[,SSSSSSSSS]]]".
|
static ChronoFormatter<Moment> |
Iso8601Format.EXTENDED_DATE_TIME_OFFSET
Defines the extended ISO-8601-format for a composition of
calendar date, wall time and timezone offset using the pattern
"uuuu-MM-dd'T'HH[:mm[:ss[,SSSSSSSSS]]]{offset}".
|
static ChronoFormatter<PlainDate> |
Iso8601Format.EXTENDED_ORDINAL_DATE
Defines the extended ISO-8601-format with year and day
of year using the pattern "uuuu-DDD".
|
static ChronoFormatter<PlainTime> |
Iso8601Format.EXTENDED_WALL_TIME
Defines the extended ISO-8601-format for a wall time
with hour, minute and optional second using the pattern
"HH[:mm[:ss[,SSSSSSSSS]]]".
|
static ChronoFormatter<PlainDate> |
Iso8601Format.EXTENDED_WEEK_DATE
Defines the extended ISO-8601-format for a week date
using the pattern "YYYY-Www-E".
|
static ChronoFormatter<Moment> |
ChronoFormatter.RFC_1123
Special formatter for printing or parsing moments according
to the RFC-1123-specification.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoFormatter<T> |
ChronoFormatter.Builder.build()
Finishes the build and creates a new
ChronoFormatter. |
ChronoFormatter<T> |
ChronoFormatter.Builder.build(Attributes attributes)
Finishes the build and creates a new
ChronoFormatter. |
static ChronoFormatter<PlainDate> |
ChronoFormatter.ofDatePattern(String pattern,
PatternType type,
Locale locale)
Constructs a pattern-based formatter for plain date objects.
|
static ChronoFormatter<PlainDate> |
ChronoFormatter.ofDateStyle(DisplayMode style,
Locale locale)
Constructs a style-based formatter for plain date objects.
|
static ChronoFormatter<Moment> |
ChronoFormatter.ofMomentPattern(String pattern,
PatternType type,
Locale locale,
TZID tzid)
Constructs a pattern-based formatter for global timestamp objects.
|
static ChronoFormatter<Moment> |
ChronoFormatter.ofMomentStyle(DisplayMode dateStyle,
DisplayMode timeStyle,
Locale locale,
TZID tzid)
Constructs a style-based formatter for moments.
|
static <T> ChronoFormatter<T> |
ChronoFormatter.ofPattern(String pattern,
PatternType type,
Locale locale,
Chronology<T> chronology)
Constructs a pattern-based formatter for general chronologies.
|
static <T extends LocalizedPatternSupport> |
ChronoFormatter.ofStyle(DisplayStyle style,
Locale locale,
Chronology<T> chronology)
Constructs a style-based formatter for general chronologies.
|
static ChronoFormatter<PlainTime> |
ChronoFormatter.ofTimePattern(String pattern,
PatternType type,
Locale locale)
Constructs a pattern-based formatter for clock time objects.
|
static ChronoFormatter<PlainTimestamp> |
ChronoFormatter.ofTimestampPattern(String pattern,
PatternType type,
Locale locale)
Constructs a pattern-based formatter for plain timestamps.
|
static ChronoFormatter<PlainTimestamp> |
ChronoFormatter.ofTimestampStyle(DisplayMode dateStyle,
DisplayMode timeStyle,
Locale locale)
Constructs a style-based formatter for plain timestamps.
|
static ChronoFormatter<PlainTime> |
ChronoFormatter.ofTimeStyle(DisplayMode style,
Locale locale)
Constructs a style-based formatter for plain date objects.
|
<A extends Enum<A>> |
ChronoFormatter.with(AttributeKey<A> key,
A value)
Creates a copy of this formatter with given enum-attribute.
|
ChronoFormatter<T> |
ChronoFormatter.with(AttributeKey<Boolean> key,
boolean value)
Creates a copy of this formatter with given boolean-attribute.
|
ChronoFormatter<T> |
ChronoFormatter.with(AttributeKey<Character> key,
char value)
Creates a copy of this formatter with given char-attribute.
|
ChronoFormatter<T> |
ChronoFormatter.with(AttributeKey<Integer> key,
int value)
Creates a copy of this formatter with given int-attribute.
|
ChronoFormatter<T> |
ChronoFormatter.with(Attributes attributes)
Creates a copy of this formatter with given standard attributes.
|
ChronoFormatter<T> |
ChronoFormatter.with(ChronoHistory history)
Creates a copy of this formatter with the given chronological history of gregorian calendar reforms.
|
ChronoFormatter<T> |
ChronoFormatter.with(Leniency leniency) |
ChronoFormatter<T> |
ChronoFormatter.with(Locale locale)
Creates a copy of this formatter with given locale.
|
ChronoFormatter<T> |
ChronoFormatter.with(StartOfDay startOfDay)
Sets the start of calendar day.
|
ChronoFormatter<T> |
ChronoFormatter.with(Timezone tz)
Creates a copy of this formatter with given timezone which
shall be used in formatting or parsing.
|
ChronoFormatter<T> |
ChronoFormatter.withAlternativeEraNames()
Creates a copy of this formatter with alternative era names.
|
ChronoFormatter<T> |
ChronoFormatter.withCalendarVariant(String variant)
Sets the calendar variant.
|
ChronoFormatter<T> |
ChronoFormatter.withCalendarVariant(VariantSource variantSource)
Sets the calendar variant.
|
<V> ChronoFormatter<T> |
ChronoFormatter.withDefault(ChronoElement<V> element,
V value)
Determines a default replacement value for given element.
|
<V> ChronoFormatter<T> |
ChronoFormatter.withDefaultSource(ChronoElement<V> element,
ChronoElement<V> source)
Determines a source reference in parsed data for a default replacement value of given element.
|
<V> ChronoFormatter<T> |
ChronoFormatter.withDefaultSupplier(ChronoElement<V> element,
Supplier<V> supplier)
Determines a supplier for a default replacement value of given element.
|
ChronoFormatter<T> |
ChronoFormatter.withGregorianCutOver(PlainDate date)
Short-cut for
with(ChronoHistory.ofGregorianReform(date)). |
ChronoFormatter<T> |
ChronoFormatter.withLatinEraNames()
Creates a copy of this formatter with latin era names.
|
ChronoFormatter<T> |
ChronoFormatter.withStdTimezone()
Equivalent to
with(Timezone.ofSystem()). |
ChronoFormatter<T> |
ChronoFormatter.withTimezone(String tzid)
Equivalent to
with(Timezone.of(tzid)). |
ChronoFormatter<T> |
ChronoFormatter.withTimezone(TZID tzid)
Equivalent to
with(Timezone.of(tzid)). |
| 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.
|
static <T extends ChronoEntity<T>> |
MultiFormatParser.of(ChronoFormatter<T>... formats)
Creates a new multiple format parser.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends ChronoEntity<T>> |
MultiFormatParser.of(List<ChronoFormatter<T>> formats)
Creates a new multiple format parser.
|
Copyright © 2014–2017. All rights reserved.