| Modifier and Type | Class and Description |
|---|---|
| private static class | TimeZoneNameUtility.
Obtains a localized time zone strings from a TimeZoneNameProvider implementation. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | cachedDisplayNames
Cache for managing display names per timezone per locale The structure is: Map(key=id, value=SoftReference(Map(key=locale, value=displaynames))) |
| private static final ConcurrentHashMap | cachedZoneData
cache to hold time zone localized strings. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Optional | |
| public static Optional | Returns: the tzdb's time zone IDtime zone short ID defined in LDML shortID)Converts the time zone id from LDML's 5-letter id to tzdb's id |
| public static String | Returns: the explicit metazone DST offset for the specified time zone ID, if existsthe time zone ID tzid)Returns the explicit metazone DST offset for the specified time zone ID, if exists. |
| public static String[][] | |
| private static String[][] | |
| public static String | Returns: the requested time zone name, or null if not found.time zone ID id, boolean true for a daylight saving time name, or false for a standard time name daylight, int TimeZone.LONG or TimeZone.SHORT style, Locale desired Locale locale)Retrieves a standard or daylight-saving time name for the given time zone ID. |
| public static String[] | |
| private static String[] | |
| public static String | Returns: the requested generic time zone display name, or null if not found.time zone ID id, int TimeZone.LONG or TimeZone.SHORT style, Locale desired Locale locale)Retrieves a generic time zone display name for a time zone ID. |
| cachedDisplayNames | back to summary |
|---|---|
| private static final Map<String, SoftReference<Map<Locale, String[]>>> cachedDisplayNames Cache for managing display names per timezone per locale The structure is: Map(key=id, value=SoftReference(Map(key=locale, value=displaynames))) | |
| cachedZoneData | back to summary |
|---|---|
| private static final ConcurrentHashMap<Locale, SoftReference<String[][]>> cachedZoneData cache to hold time zone localized strings. Keyed by Locale | |
| TimeZoneNameUtility | back to summary |
|---|---|
| private TimeZoneNameUtility() | |
| canonicalTZID | back to summary |
|---|---|
| public static Optional Returns the canonical ID for the given ID | |
| convertLDMLShortID | back to summary |
|---|---|
| public static Optional Converts the time zone id from LDML's 5-letter id to tzdb's id | |
| explicitDstOffset | back to summary |
|---|---|
| public static String explicitDstOffset(String tzid) Returns the explicit metazone DST offset for the specified time zone ID, if exists. | |
| getZoneStrings | back to summary |
|---|---|
| public static String[][] getZoneStrings(Locale locale) get time zone localized strings. Enumerate all keys. | |
| loadZoneStrings | back to summary |
|---|---|
| private static String[][] loadZoneStrings(Locale locale) | |
| retrieveDisplayName | back to summary |
|---|---|
| public static String retrieveDisplayName(String id, boolean daylight, int style, Locale locale) Retrieves a standard or daylight-saving time name for the given time zone ID. | |
| retrieveDisplayNames | back to summary |
|---|---|
| public static String[] retrieveDisplayNames(String id, Locale locale) Retrieve display names for a time zone ID. | |
| retrieveDisplayNamesImpl | back to summary |
|---|---|
| private static String[] retrieveDisplayNamesImpl(String id, Locale locale) | |
| retrieveGenericDisplayName | back to summary |
|---|---|
| public static String retrieveGenericDisplayName(String id, int style, Locale locale) Retrieves a generic time zone display name for a time zone ID. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final TimeZoneNameUtility. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | examineAliases(TimeZoneNameProvider tznp, Locale locale, String requestID, String tzid, int style, Map<String, String> aliases)
|
| private static String | getName(TimeZoneNameProvider timeZoneNameProvider, Locale locale, String requestID, int style, String tzid)
|
| public String | getObject(TimeZoneNameProvider timeZoneNameProvider, Locale locale, String requestID, Object... params)
Implements sun. Returns an object from the provider |
| INSTANCE | back to summary |
|---|---|
| private static final TimeZoneNameUtility. | |
| TimeZoneNameGetter | back to summary |
|---|---|
| private TimeZoneNameGetter() | |
| examineAliases | back to summary |
|---|---|
| private static String examineAliases(TimeZoneNameProvider tznp, Locale locale, String requestID, String tzid, int style, Map<String, String> aliases) | |
| getName | back to summary |
|---|---|
| private static String getName(TimeZoneNameProvider timeZoneNameProvider, Locale locale, String requestID, int style, String tzid) | |
| getObject | back to summary |
|---|---|
| public String getObject(TimeZoneNameProvider timeZoneNameProvider, Locale locale, String requestID, Object... params) Implements sun. Doc from sun. Returns an object from the provider
| |