Format instances.
| Modifier and Type | Class and Description |
|---|---|
| private static class | AbstractFormatCache.
Helper class to hold multipart Map keys as arrays. |
| Modifier and Type | Field and Description |
|---|---|
| private static final ConcurrentMap | |
| private final ConcurrentMap | |
| pack-priv static final int | NONE
No date or no time. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | |
| pack-priv void | |
| protected abstract F | Returns: a pattern based date/time formatter.java. compatible pattern, this will not be null.time zone, this will not be null. timeZone, Locale locale, this will not be null. locale)Create a format instance using the specified pattern, time zone and locale. |
| pack-priv F | Returns: a localized standard date/time formatter.date style: FULL, LONG, MEDIUM, or SHORT. dateStyle, final TimeZone optional time zone, overrides time zone of formatted date, null means use default Locale. timeZone, final Locale optional locale, overrides system locale. locale)Gets a date formatter instance using the specified style, time zone and locale. |
| pack-priv F | Returns: a localized standard date/time formatter.date style: FULL, LONG, MEDIUM, or SHORT. dateStyle, final int time style: FULL, LONG, MEDIUM, or SHORT. timeStyle, final TimeZone optional time zone, overrides time zone of formatted date, null means use default Locale. timeZone, final Locale optional locale, overrides system locale. locale)Gets a date/time formatter instance using the specified style, time zone and locale. |
| private F | Returns: a localized standard date/time formatter.date style: FULL, LONG, MEDIUM, or SHORT, null indicates no date in format. dateStyle, final Integer time style: FULL, LONG, MEDIUM, or SHORT, null indicates no time in format. timeStyle, final TimeZone optional time zone, overrides time zone of formatted date, null means use default Locale. timeZone, Locale optional locale, overrides system locale. locale)Gets a date/time formatter instance using the specified style, time zone and locale. |
| public F | Returns: a date/time formatter.Gets a formatter instance using the default pattern in the default time zone and locale. |
| public F | Returns: a pattern based date/time formatter.java. compatible pattern, non-null.the time zone, null means use the default TimeZone. timeZone, final Locale the locale, null means use the default Locale. locale)Gets a formatter instance using the specified pattern, time zone and locale. |
| pack-priv static String | Returns: a localized standard date/time format.date style: FULL, LONG, MEDIUM, or SHORT, null indicates no date in format. dateStyle, final Integer time style: FULL, LONG, MEDIUM, or SHORT, null indicates no time in format. timeStyle, final Locale The non-null locale of the desired format. locale)Gets a date/time format for the specified styles and locale. |
| pack-priv F | Returns: a localized standard date/time formatter.time style: FULL, LONG, MEDIUM, or SHORT. timeStyle, final TimeZone optional time zone, overrides time zone of formatted date, null means use default Locale. timeZone, final Locale optional locale, overrides system locale. locale)Gets a time formatter instance using the specified style, time zone and locale. |
| dateTimeInstanceCache | back to summary |
|---|---|
| private static final ConcurrentMap<AbstractFormatCache. | |
| instanceCache | back to summary |
|---|---|
| private final ConcurrentMap<AbstractFormatCache. | |
| NONE | back to summary |
|---|---|
| pack-priv static final int NONE No date or no time. Used in same parameters as DateFormat.SHORT or DateFormat.LONG. | |
| AbstractFormatCache | back to summary |
|---|---|
| pack-priv AbstractFormatCache() | |
| clear | back to summary |
|---|---|
| pack-priv static void clear() Clears the cache. | |
| clearInstance | back to summary |
|---|---|
| pack-priv void clearInstance() Clears the cache. | |
| createInstance | back to summary |
|---|---|
| protected abstract F createInstance(String pattern, TimeZone timeZone, Locale locale) Create a format instance using the specified pattern, time zone and locale.
| |
| getDateInstance | back to summary |
|---|---|
| pack-priv F getDateInstance(final int dateStyle, final TimeZone timeZone, final Locale locale) Gets a date formatter instance using the specified style, time zone and locale.
| |
| getDateTimeInstance | back to summary |
|---|---|
| pack-priv F getDateTimeInstance(final int dateStyle, final int timeStyle, final TimeZone timeZone, final Locale locale) Gets a date/time formatter instance using the specified style, time zone and locale.
| |
| getDateTimeInstance | back to summary |
|---|---|
| private F getDateTimeInstance(final Integer dateStyle, final Integer timeStyle, final TimeZone timeZone, Locale locale) Gets a date/time formatter instance using the specified style, time zone and locale.
| |
| getInstance | back to summary |
|---|---|
| public F getInstance() Gets a formatter instance using the default pattern in the default time zone and locale.
| |
| getInstance | back to summary |
|---|---|
| public F getInstance(final String pattern, final TimeZone timeZone, final Locale locale) Gets a formatter instance using the specified pattern, time zone and locale.
| |
| getPatternForStyle | back to summary |
|---|---|
| pack-priv static String getPatternForStyle(final Integer dateStyle, final Integer timeStyle, final Locale locale) Gets a date/time format for the specified styles and locale.
| |
| getTimeInstance | back to summary |
|---|---|
| pack-priv F getTimeInstance(final int timeStyle, final TimeZone timeZone, final Locale locale) Gets a time formatter instance using the specified style, time zone and locale.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Object[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | ArrayKey(final Object...
the set of objects that make up the key. Each key may be null. keys)Constructs an instance of |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| keys | back to summary |
|---|---|
| private final Object[] keys | |
| ArrayKey | back to summary |
|---|---|
| pack-priv ArrayKey(final Object... keys) Constructs an instance of
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |