TimeZoneAwareLocaleContext interface,
always returning a specified Locale and TimeZone.Note
Prefer the use of SimpleLocaleContext when only setting
a Locale but no TimeZone.
LocaleContextHolder#setLocaleContext, LocaleContextHolder#getTimeZone()
| Access | Constructor and Description |
|---|---|
| public | SimpleTimeZoneAwareLocaleContext(Locale
the Locale to expose locale, TimeZone the TimeZone to expose timeZone)Create a new SimpleTimeZoneAwareLocaleContext that exposes the specified Locale and TimeZone. |
| Modifier and Type | Method and Description |
|---|---|
| public TimeZone | getTimeZone()
Implements org. Return the current TimeZone, which can be fixed or determined dynamically, depending on the implementation strategy. |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| timeZone | back to summary |
|---|---|
| private final TimeZone timeZone
| |
| SimpleTimeZoneAwareLocaleContext | back to summary |
|---|---|
| public SimpleTimeZoneAwareLocaleContext(Locale locale, TimeZone timeZone) Create a new SimpleTimeZoneAwareLocaleContext that exposes the specified
Locale and TimeZone. Every | |
| getTimeZone | back to summary |
|---|---|
| public TimeZone getTimeZone() Implements org. Doc from org. Return the current TimeZone, which can be fixed or determined dynamically, depending on the implementation strategy. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |