Package com.ibm.icu.impl
Class TimeZoneNamesImpl.ZNames
- java.lang.Object
-
- com.ibm.icu.impl.TimeZoneNamesImpl.ZNames
-
- Enclosing class:
- TimeZoneNamesImpl
private static class TimeZoneNamesImpl.ZNames extends java.lang.Object
This class stores name data for a meta zone or time zone.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
TimeZoneNamesImpl.ZNames.NameTypeIndex
Private enum corresponding to the public TimeZoneNames::NameType for the order in which fields are stored in a ZNames instance.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]
_names
private boolean
didAddIntoTrie
(package private) static TimeZoneNamesImpl.ZNames
EMPTY_ZNAMES
private static int
EX_LOC_INDEX
static int
NUM_NAME_TYPES
-
Constructor Summary
Constructors Modifier Constructor Description protected
ZNames(java.lang.String[] names)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAsMetaZoneIntoTrie(java.lang.String mzID, TextTrieMap<TimeZoneNamesImpl.NameInfo> trie)
void
addAsTimeZoneIntoTrie(java.lang.String tzID, TextTrieMap<TimeZoneNamesImpl.NameInfo> trie)
private void
addNamesIntoTrie(java.lang.String mzID, java.lang.String tzID, TextTrieMap<TimeZoneNamesImpl.NameInfo> trie)
static TimeZoneNamesImpl.ZNames
createMetaZoneAndPutInCache(java.util.Map<java.lang.String,TimeZoneNamesImpl.ZNames> cache, java.lang.String[] names, java.lang.String mzID)
static TimeZoneNamesImpl.ZNames
createTimeZoneAndPutInCache(java.util.Map<java.lang.String,TimeZoneNamesImpl.ZNames> cache, java.lang.String[] names, java.lang.String tzID)
java.lang.String
getName(TimeZoneNames.NameType type)
private static TimeZoneNames.NameType
getNameType(int index)
private static int
getNameTypeIndex(TimeZoneNames.NameType type)
-
-
-
Field Detail
-
NUM_NAME_TYPES
public static final int NUM_NAME_TYPES
- See Also:
- Constant Field Values
-
EMPTY_ZNAMES
static final TimeZoneNamesImpl.ZNames EMPTY_ZNAMES
-
EX_LOC_INDEX
private static final int EX_LOC_INDEX
-
_names
private java.lang.String[] _names
-
didAddIntoTrie
private boolean didAddIntoTrie
-
-
Method Detail
-
getNameTypeIndex
private static int getNameTypeIndex(TimeZoneNames.NameType type)
-
getNameType
private static TimeZoneNames.NameType getNameType(int index)
-
createMetaZoneAndPutInCache
public static TimeZoneNamesImpl.ZNames createMetaZoneAndPutInCache(java.util.Map<java.lang.String,TimeZoneNamesImpl.ZNames> cache, java.lang.String[] names, java.lang.String mzID)
-
createTimeZoneAndPutInCache
public static TimeZoneNamesImpl.ZNames createTimeZoneAndPutInCache(java.util.Map<java.lang.String,TimeZoneNamesImpl.ZNames> cache, java.lang.String[] names, java.lang.String tzID)
-
getName
public java.lang.String getName(TimeZoneNames.NameType type)
-
addAsMetaZoneIntoTrie
public void addAsMetaZoneIntoTrie(java.lang.String mzID, TextTrieMap<TimeZoneNamesImpl.NameInfo> trie)
-
addAsTimeZoneIntoTrie
public void addAsTimeZoneIntoTrie(java.lang.String tzID, TextTrieMap<TimeZoneNamesImpl.NameInfo> trie)
-
addNamesIntoTrie
private void addNamesIntoTrie(java.lang.String mzID, java.lang.String tzID, TextTrieMap<TimeZoneNamesImpl.NameInfo> trie)
-
-