Note
The abbreviations in the tz database are not necessarily unique. For example, parsing abbreviation "IST" is ambiguous (can be parsed as India Standard Time or Israel Standard Time). The data file (tzdbNames.txt) contains regional mapping, and the locale in the constructor is used as a hint for resolving these ambiguous names.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private ULocale | |
| private transient volatile String | |
| private static final long | |
| private static final ConcurrentHashMap | |
| private static volatile TextTrieMap | |
| private static final ICUResourceBundle |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Collection | find(CharSequence
the text. text, int the starting offset within the text. start, EnumSet<TimeZoneNames.the set of name types, or nameTypesnull for all name types.Overrides com. |
| public Set | getAvailableMetaZoneIDs()
Implements abstract com. |
| public Set | getAvailableMetaZoneIDs(String
The canonical time zone ID. tzID)Implements abstract com. |
| public String | getMetaZoneDisplayName(String
The meta zone ID. mzID, TimeZoneNames.The display name type. See typeTimeZoneNames..Implements abstract com. |
| public String | getMetaZoneID(String
The canonical time zone ID. tzID, long The date. date)Implements abstract com. |
| private static TZDBTimeZoneNames. | |
| public String | getReferenceZoneID(String
The meta zone ID. mzID, String The region. region)Implements abstract com. |
| private String | |
| public String | getTimeZoneDisplayName(String
The canonical time zone ID. tzID, TimeZoneNames.The display name type. See typeTimeZoneNames..Implements abstract com. |
| private static void |
| _locale | back to summary |
|---|---|
| private ULocale _locale | |
| _region | back to summary |
|---|---|
| private transient volatile String _region | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TZDB_NAMES_MAP | back to summary |
|---|---|
| private static final ConcurrentHashMap<String, TZDBTimeZoneNames. | |
| TZDB_NAMES_TRIE | back to summary |
|---|---|
| private static volatile TextTrieMap<TZDBTimeZoneNames. | |
| ZONESTRINGS | back to summary |
|---|---|
| private static final ICUResourceBundle ZONESTRINGS | |
| TZDBTimeZoneNames | back to summary |
|---|---|
| public TZDBTimeZoneNames(ULocale loc) | |
| find | back to summary |
|---|---|
| public Collection Overrides com. Doc from com. Finds time zone name prefix matches for the input text at the given offset and returns a collection of the matches.
| |
| getAvailableMetaZoneIDs | back to summary |
|---|---|
| public Set Implements abstract com. Doc from com. Returns an immutable set of all available meta zone IDs. | |
| getAvailableMetaZoneIDs | back to summary |
|---|---|
| public Set Implements abstract com. Doc from com. Returns an immutable set of all available meta zone IDs used by the given time zone. | |
| getMetaZoneDisplayName | back to summary |
|---|---|
| public String getMetaZoneDisplayName(String mzID, TimeZoneNames. Implements abstract com. Doc from com. Returns the display name of the meta zone.
| |
| getMetaZoneID | back to summary |
|---|---|
| public String getMetaZoneID(String tzID, long date) Implements abstract com. Doc from com. Returns the meta zone ID for the given canonical time zone ID at the given date.
| |
| getMetaZoneNames | back to summary |
|---|---|
| private static TZDBTimeZoneNames. | |
| getReferenceZoneID | back to summary |
|---|---|
| public String getReferenceZoneID(String mzID, String region) Implements abstract com. Doc from com. Returns the reference zone ID for the given meta zone ID for the region. Note Each meta zone must have a reference zone associated with a special region "001" (world). Some meta zones may have region specific reference zone IDs other than the special region "001". When a meta zone does not have any region specific reference zone IDs, this method return the reference zone ID for the special region "001" (world).
| |
| getTargetRegion | back to summary |
|---|---|
| private String getTargetRegion() | |
| getTimeZoneDisplayName | back to summary |
|---|---|
| public String getTimeZoneDisplayName(String tzID, TimeZoneNames. Implements abstract com. Doc from com. Returns the display name of the time zone. Unlike
| |
| prepareFind | back to summary |
|---|---|
| private static void prepareFind() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final boolean | |
| pack-priv final String | |
| pack-priv final String[] | |
| pack-priv final TimeZoneNames. |
| Access | Constructor and Description |
|---|---|
| pack-priv | TZDBNameInfo(String mzID, TimeZoneNames.
|
| ambiguousType | back to summary |
|---|---|
| pack-priv final boolean ambiguousType | |
| mzID | back to summary |
|---|---|
| pack-priv final String mzID | |
| parseRegions | back to summary |
|---|---|
| pack-priv final String[] parseRegions | |
| type | back to summary |
|---|---|
| pack-priv final TimeZoneNames. | |
| TZDBNameInfo | back to summary |
|---|---|
| pack-priv TZDBNameInfo(String mzID, TimeZoneNames. | |
| Modifier and Type | Field and Description |
|---|---|
| private String[] | |
| private String[] | |
| public static final TZDBTimeZoneNames. | |
| private static final String[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static TZDBTimeZoneNames. | |
| pack-priv String | |
| pack-priv String[] |
| _names | back to summary |
|---|---|
| private String[] _names | |
| _parseRegions | back to summary |
|---|---|
| private String[] _parseRegions | |
| EMPTY_TZDBNAMES | back to summary |
|---|---|
| public static final TZDBTimeZoneNames. | |
| KEYS | back to summary |
|---|---|
| private static final String[] KEYS | |
| TZDBNames | back to summary |
|---|---|
| private TZDBNames(String[] names, String[] parseRegions) | |
| getInstance | back to summary |
|---|---|
| pack-priv static TZDBTimeZoneNames. | |
| getName | back to summary |
|---|---|
| pack-priv String getName(TimeZoneNames. | |
| getParseRegions | back to summary |
|---|---|
| pack-priv String[] getParseRegions() | |
| Modifier and Type | Field and Description |
|---|---|
| private Collection | |
| private EnumSet | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Collection | |
| public boolean | handlePrefixMatch(int
Matched key's length matchLength, Iterator<TZDBTimeZoneNames.An iterator of the objects associated with the matched key valuesImplements com. |
| _matches | back to summary |
|---|---|
| private Collection<TimeZoneNames. | |
| _nameTypes | back to summary |
|---|---|
| private EnumSet<TimeZoneNames. | |
| _region | back to summary |
|---|---|
| private String _region | |
| TZDBNameSearchHandler | back to summary |
|---|---|
| pack-priv TZDBNameSearchHandler(EnumSet<TimeZoneNames. | |
| getMatches | back to summary |
|---|---|
| public Collection Returns the match results
| |
| handlePrefixMatch | back to summary |
|---|---|
| public boolean handlePrefixMatch(int matchLength, Iterator<TZDBTimeZoneNames. Implements com. Doc from com. Handles a prefix key match
| |