Top Description Inners Fields Constructors Methods
com.ibm.icu.impl

public Class TimeZoneGenericNames

extends Object
implements Serializable, Freezable<TimeZoneGenericNames>
Class Inheritance
All Implemented Interfaces
com.ibm.icu.util.Freezable, java.lang.Cloneable, java.io.Serializable
Imports
java.io.IOException, .ObjectInputStream, .Serializable, java.lang.ref.WeakReference, java.text.MessageFormat, java.util.Collection, .EnumSet, .Iterator, .LinkedList, .MissingResourceException, .Set, java.util.concurrent.ConcurrentHashMap, com.ibm.icu.impl.TextTrieMap.ResultHandler, com.ibm.icu.text.LocaleDisplayNames, .TimeZoneFormat.TimeType, .TimeZoneNames, .TimeZoneNames.MatchInfo, .TimeZoneNames.NameType, com.ibm.icu.util.BasicTimeZone, .Freezable, .Output, .TimeZone, .TimeZone.SystemTimeZoneType, .TimeZoneTransition, .ULocale

This class interact with TimeZoneNames and LocaleDisplayNames to format and parse time zone's generic display names. It is not recommended to use this class directly, instead use com.ibm.icu.text.TimeZoneFormat.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
TimeZoneGenericNames.Cache

TimeZoneGenericNames cache implementation.

public static class
TimeZoneGenericNames.GenericMatchInfo

A class used for returning the name search result used by TimeZoneGenericNames#find(String, int, EnumSet).

private static class
TimeZoneGenericNames.GenericNameSearchHandler

A private class implementing the search callback interface in TextTrieMap for collecting match results.

public static enum
private static class
TimeZoneGenericNames.NameInfo

A private class used for storing the name information in the local trie.

public static enum
TimeZoneGenericNames.Pattern

Format pattern enum used for composing location and partial location names

Field Summary

Modifier and TypeField and Description
private transient volatile boolean
private transient ConcurrentHashMap<String, String>
private transient ConcurrentHashMap<String, String>
private transient TextTrieMap<TimeZoneGenericNames.NameInfo>
private transient boolean
private final ULocale
private transient WeakReference<LocaleDisplayNames>
private transient MessageFormat[]
private transient String
private TimeZoneNames
private static final long
private static TimeZoneGenericNames.Cache
private static final TimeZoneNames.NameType[]
private static final long

Constructor Summary

AccessConstructor and Description
public
TimeZoneGenericNames(ULocale
the locale
locale
,
TimeZoneNames
the TimeZoneNames
tznames
)

Constructs a TimeZoneGenericNames with the given locale and the TimeZoneNames.

private
TimeZoneGenericNames(ULocale
the locale
locale
)

Constructs a TimeZoneGenericNames with the given locale.

Method Summary

Modifier and TypeMethod and Description
public TimeZoneGenericNames
cloneAsThawed()

Implements com.ibm.icu.util.Freezable.cloneAsThawed.

Provides for the clone operation.
private TimeZoneGenericNames.GenericMatchInfo

Returns:

A GenericMatchInfo
createGenericMatchInfo
(TimeZoneNames.MatchInfo
the MatchInfo
matchInfo
)

Returns a GenericMatchInfo for the given MatchInfo.

public Collection<TimeZoneGenericNames.GenericMatchInfo>

Returns:

A collection of match info.
find
(String
the text
text
,
int
the start offset in the text
start
,
EnumSet<TimeZoneGenericNames.GenericNameType>
the set of name types.
genericTypes
)

Returns a collection of time zone display name matches for the specified types in the given text at the given offset.

public TimeZoneGenericNames.GenericMatchInfo

Returns:

the best matching name info.
findBestMatch
(String
the text
text
,
int
the start offset in the text
start
,
EnumSet<TimeZoneGenericNames.GenericNameType>
the set of name types.
genericTypes
)

Returns the best match of time zone display name for the specified types in the given text at the given offset.

private synchronized Collection<TimeZoneGenericNames.GenericMatchInfo>

Returns:

A collection of match info.
findLocal
(String
the text
text
,
int
the start offset in the text
start
,
EnumSet<TimeZoneGenericNames.GenericNameType>
the set of name types.
types
)

Returns a collection of time zone display name matches for the specified types in the given text at the given offset.

private Collection<TimeZoneNames.MatchInfo>

Returns:

A collection of match info.
findTimeZoneNames
(String
the text
text
,
int
the start offset in the text
start
,
EnumSet<TimeZoneGenericNames.GenericNameType>
the set of name types.
types
)

Returns a collection of time zone display name matches for the specified types in the given text at the given offset.

private String

Returns:

the name used for a generic name type, which could be the generic name, or the standard name (if the zone does not observes DST around the date), or the partial location name.
formatGenericNonLocationName
(TimeZone
the requested time zone
tz
,
TimeZoneGenericNames.GenericNameType
the generic name type, either LONG or SHORT
type
,
long
the date
date
)

Private method to get a generic string, with fallback logics involved, that is, 1.

private synchronized String

Returns:

the formatted string
formatPattern
(TimeZoneGenericNames.Pattern
the message pattern enum
pat
,
String...
the format argument(s)
args
)

Private simple pattern formatter used for formatting generic location names and partial location names.

public TimeZoneGenericNames
freeze()

Implements com.ibm.icu.util.Freezable.freeze.

Freezes the object.
public String

Returns:

the display name of the time zone for the given name type at the given date, or null.
getDisplayName
(TimeZone
the time zone
tz
,
TimeZoneGenericNames.GenericNameType
the generic name type - see GenericNameType
type
,
long
the date
date
)

Returns the display name of the time zone for the given name type at the given date, or null if the display name is not available.

public String

Returns:

the generic location name for the given canonical time zone ID.
getGenericLocationName
(String
the canonical time zone ID
canonicalTzID
)

Returns the generic location name for the given canonical time zone ID.

public static TimeZoneGenericNames

Returns:

A frozen TimeZoneGenericNames.
getInstance
(ULocale
the locale
locale
)

The factory method of TimeZoneGenericNames.

private synchronized LocaleDisplayNames

Returns:

the instance of LocaleDisplayNames for the locale of this object.
getLocaleDisplayNames
()

Private method returning LocaleDisplayNames instance for the locale of this instance.

private String

Returns:

the partial location format string
getPartialLocationName
(String
the canonical time zone ID
tzID
,
String
the meta zone ID
mzID
,
boolean
true when long generic name
isLong
,
String
the meta zone generic display name
mzDisplayName
)

Private method for formatting partial location names.

private synchronized String

Returns:

the target region
getTargetRegion
()

Private method returning the target region.

private void
init()

Private method initializing the instance of TimeZoneGenericName.

public boolean
isFrozen()

Implements com.ibm.icu.util.Freezable.isFrozen.

Determines whether the object has been frozen or not.
private synchronized void
loadStrings(String tzCanonicalID)

private void
public TimeZoneGenericNames

Returns:

this object.
setFormatPattern
(TimeZoneGenericNames.Pattern
the pattern type
patType
,
String
the pattern string
patStr
)

Sets the pattern string for the pattern type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_frozenback to summary
private transient volatile boolean _frozen
_genericLocationNamesMapback to summary
private transient ConcurrentHashMap<String, String> _genericLocationNamesMap
_genericPartialLocationNamesMapback to summary
private transient ConcurrentHashMap<String, String> _genericPartialLocationNamesMap
_gnamesTrieback to summary
private transient TextTrieMap<TimeZoneGenericNames.NameInfo> _gnamesTrie
_gnamesTrieFullyLoadedback to summary
private transient boolean _gnamesTrieFullyLoaded
_localeback to summary
private final ULocale _locale
_localeDisplayNamesRefback to summary
private transient WeakReference<LocaleDisplayNames> _localeDisplayNamesRef
_patternFormattersback to summary
private transient MessageFormat[] _patternFormatters
_regionback to summary
private transient String _region
_tznamesback to summary
private TimeZoneNames _tznames
DST_CHECK_RANGEback to summary
private static final long DST_CHECK_RANGE
GENERIC_NAMES_CACHEback to summary
private static TimeZoneGenericNames.Cache GENERIC_NAMES_CACHE
GENERIC_NON_LOCATION_TYPESback to summary
private static final TimeZoneNames.NameType[] GENERIC_NON_LOCATION_TYPES
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

TimeZoneGenericNamesback to summary
public TimeZoneGenericNames(ULocale locale, TimeZoneNames tznames)

Constructs a TimeZoneGenericNames with the given locale and the TimeZoneNames.

Parameters
locale:ULocale

the locale

tznames:TimeZoneNames

the TimeZoneNames

TimeZoneGenericNamesback to summary
private TimeZoneGenericNames(ULocale locale)

Constructs a TimeZoneGenericNames with the given locale. This constructor is private and called from getInstance(ULocale).

Parameters
locale:ULocale

the locale

Method Detail

cloneAsThawedback to summary
public TimeZoneGenericNames cloneAsThawed()

Implements com.ibm.icu.util.Freezable.cloneAsThawed.

Doc from com.ibm.icu.util.Freezable.cloneAsThawed.

Provides for the clone operation. Any clone is initially unfrozen.

Annotations
@Override
createGenericMatchInfoback to summary
private TimeZoneGenericNames.GenericMatchInfo createGenericMatchInfo(TimeZoneNames.MatchInfo matchInfo)

Returns a GenericMatchInfo for the given MatchInfo.

Parameters
matchInfo:TimeZoneNames.MatchInfo

the MatchInfo

Returns:TimeZoneGenericNames.GenericMatchInfo

A GenericMatchInfo

findback to summary
public Collection<TimeZoneGenericNames.GenericMatchInfo> find(String text, int start, EnumSet<TimeZoneGenericNames.GenericNameType> genericTypes)

Returns a collection of time zone display name matches for the specified types in the given text at the given offset.

Parameters
text:String

the text

start:int

the start offset in the text

genericTypes:EnumSet<TimeZoneGenericNames.GenericNameType>

the set of name types.

Returns:Collection<TimeZoneGenericNames.GenericMatchInfo>

A collection of match info.

findBestMatchback to summary
public TimeZoneGenericNames.GenericMatchInfo findBestMatch(String text, int start, EnumSet<TimeZoneGenericNames.GenericNameType> genericTypes)

Returns the best match of time zone display name for the specified types in the given text at the given offset.

Parameters
text:String

the text

start:int

the start offset in the text

genericTypes:EnumSet<TimeZoneGenericNames.GenericNameType>

the set of name types.

Returns:TimeZoneGenericNames.GenericMatchInfo

the best matching name info.

findLocalback to summary
private synchronized Collection<TimeZoneGenericNames.GenericMatchInfo> findLocal(String text, int start, EnumSet<TimeZoneGenericNames.GenericNameType> types)

Returns a collection of time zone display name matches for the specified types in the given text at the given offset. This method only finds matches from the local trie, that contains 1) generic location names and 2) long/short generic partial location names, used by this object.

Parameters
text:String

the text

start:int

the start offset in the text

types:EnumSet<TimeZoneGenericNames.GenericNameType>

the set of name types.

Returns:Collection<TimeZoneGenericNames.GenericMatchInfo>

A collection of match info.

findTimeZoneNamesback to summary
private Collection<TimeZoneNames.MatchInfo> findTimeZoneNames(String text, int start, EnumSet<TimeZoneGenericNames.GenericNameType> types)

Returns a collection of time zone display name matches for the specified types in the given text at the given offset. This method only finds matches from the TimeZoneNames used by this object.

Parameters
text:String

the text

start:int

the start offset in the text

types:EnumSet<TimeZoneGenericNames.GenericNameType>

the set of name types.

Returns:Collection<TimeZoneNames.MatchInfo>

A collection of match info.

formatGenericNonLocationNameback to summary
private String formatGenericNonLocationName(TimeZone tz, TimeZoneGenericNames.GenericNameType type, long date)

Private method to get a generic string, with fallback logics involved, that is, 1. If a generic non-location string is available for the zone, return it. 2. If a generic non-location string is associated with a meta zone and the zone never use daylight time around the given date, use the standard string (if available). 3. If a generic non-location string is associated with a meta zone and the offset at the given time is different from the preferred zone for the current locale, then return the generic partial location string (if available) 4. If a generic non-location string is not available, use generic location string.

Parameters
tz:TimeZone

the requested time zone

type:TimeZoneGenericNames.GenericNameType

the generic name type, either LONG or SHORT

date:long

the date

Returns:String

the name used for a generic name type, which could be the generic name, or the standard name (if the zone does not observes DST around the date), or the partial location name.

formatPatternback to summary
private synchronized String formatPattern(TimeZoneGenericNames.Pattern pat, String... args)

Private simple pattern formatter used for formatting generic location names and partial location names. We intentionally use JDK MessageFormat for performance reason.

Parameters
pat:TimeZoneGenericNames.Pattern

the message pattern enum

args:String[]

the format argument(s)

Returns:String

the formatted string

freezeback to summary
public TimeZoneGenericNames freeze()

Implements com.ibm.icu.util.Freezable.freeze.

Doc from com.ibm.icu.util.Freezable.freeze.

Freezes the object.

Returns:TimeZoneGenericNames

the object itself.

Annotations
@Override
getDisplayNameback to summary
public String getDisplayName(TimeZone tz, TimeZoneGenericNames.GenericNameType type, long date)

Returns the display name of the time zone for the given name type at the given date, or null if the display name is not available.

Parameters
tz:TimeZone

the time zone

type:TimeZoneGenericNames.GenericNameType

the generic name type - see GenericNameType

date:long

the date

Returns:String

the display name of the time zone for the given name type at the given date, or null.

getGenericLocationNameback to summary
public String getGenericLocationName(String canonicalTzID)

Returns the generic location name for the given canonical time zone ID.

Parameters
canonicalTzID:String

the canonical time zone ID

Returns:String

the generic location name for the given canonical time zone ID.

getInstanceback to summary
public static TimeZoneGenericNames getInstance(ULocale locale)

The factory method of TimeZoneGenericNames. This static method returns a frozen instance of cached TimeZoneGenericNames.

Parameters
locale:ULocale

the locale

Returns:TimeZoneGenericNames

A frozen TimeZoneGenericNames.

getLocaleDisplayNamesback to summary
private synchronized LocaleDisplayNames getLocaleDisplayNames()

Private method returning LocaleDisplayNames instance for the locale of this instance. Because LocaleDisplayNames is only used for generic location format and partial location format, the LocaleDisplayNames is instantiated lazily.

Returns:LocaleDisplayNames

the instance of LocaleDisplayNames for the locale of this object.

getPartialLocationNameback to summary
private String getPartialLocationName(String tzID, String mzID, boolean isLong, String mzDisplayName)

Private method for formatting partial location names. This format is used when a generic name of a meta zone is available, but the given time zone is not a reference zone (golden zone) of the meta zone.

Parameters
tzID:String

the canonical time zone ID

mzID:String

the meta zone ID

isLong:boolean

true when long generic name

mzDisplayName:String

the meta zone generic display name

Returns:String

the partial location format string

getTargetRegionback to summary
private synchronized String getTargetRegion()

Private method returning the target region. The target regions is determined by the locale of this instance. When a generic name is coming from a meta zone, this region is used for checking if the time zone is a reference zone of the meta zone.

Returns:String

the target region

initback to summary
private void init()

Private method initializing the instance of TimeZoneGenericName. This method should be called from a constructor and readObject.

isFrozenback to summary
public boolean isFrozen()

Implements com.ibm.icu.util.Freezable.isFrozen.

Doc from com.ibm.icu.util.Freezable.isFrozen.

Determines whether the object has been frozen or not.

Annotations
@Override
loadStringsback to summary
private synchronized void loadStrings(String tzCanonicalID)
readObjectback to summary
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
setFormatPatternback to summary
public TimeZoneGenericNames setFormatPattern(TimeZoneGenericNames.Pattern patType, String patStr)

Sets the pattern string for the pattern type.

Note

This method is designed for CLDR ST - not for common use.

Parameters
patType:TimeZoneGenericNames.Pattern

the pattern type

patStr:String

the pattern string

Returns:TimeZoneGenericNames

this object.

com.ibm.icu.impl back to summary

private Class TimeZoneGenericNames.Cache

extends SoftCache<String, TimeZoneGenericNames, ULocale>
Class Inheritance

TimeZoneGenericNames cache implementation.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected TimeZoneGenericNames
createInstance(String
Cache lookup key for the requested instance
key
,
ULocale
Data for the instance creation
data
)

Implements abstract com.ibm.icu.impl.CacheBase.createInstance.

Creates an instance for the key and data.
Inherited from com.ibm.icu.impl.SoftCache:
getInstance

Constructor Detail

Cacheback to summary
private Cache()

Method Detail

createInstanceback to summary
protected TimeZoneGenericNames createInstance(String key, ULocale data)

Implements abstract com.ibm.icu.impl.CacheBase.createInstance.

Doc from com.ibm.icu.impl.CacheBase.createInstance.

Creates an instance for the key and data. Must be overridden.

Parameters
key:String

Cache lookup key for the requested instance

data:ULocale

Data for the instance creation

Returns:TimeZoneGenericNames

The requested instance

Annotations
@Override
com.ibm.icu.impl back to summary

public Class TimeZoneGenericNames.GenericMatchInfo

extends Object
Class Inheritance

A class used for returning the name search result used by TimeZoneGenericNames#find(String, int, EnumSet).

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final TimeZoneGenericNames.GenericNameType
pack-priv final TimeZoneFormat.TimeType
pack-priv final String

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

Modifier and TypeMethod and Description
public int
public TimeZoneGenericNames.GenericNameType
public TimeZoneFormat.TimeType
public String
tzID()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

matchLengthback to summary
pack-priv final int matchLength
nameTypeback to summary
pack-priv final TimeZoneGenericNames.GenericNameType nameType
timeTypeback to summary
pack-priv final TimeZoneFormat.TimeType timeType
tzIDback to summary
pack-priv final String tzID

Constructor Detail

GenericMatchInfoback to summary
private GenericMatchInfo(TimeZoneGenericNames.GenericNameType nameType, String tzID, int matchLength)
GenericMatchInfoback to summary
private GenericMatchInfo(TimeZoneGenericNames.GenericNameType nameType, String tzID, int matchLength, TimeZoneFormat.TimeType timeType)

Method Detail

matchLengthback to summary
public int matchLength()
nameTypeback to summary
public TimeZoneGenericNames.GenericNameType nameType()
timeTypeback to summary
public TimeZoneFormat.TimeType timeType()
tzIDback to summary
public String tzID()
com.ibm.icu.impl back to summary

private Class TimeZoneGenericNames.GenericNameSearchHandler

extends Object
implements TextTrieMap.ResultHandler<TimeZoneGenericNames.NameInfo>
Class Inheritance
  • java.lang.Object
  • com.ibm.icu.impl.TimeZoneGenericNames.GenericNameSearchHandler
All Implemented Interfaces
com.ibm.icu.impl.TextTrieMap.ResultHandler

A private class implementing the search callback interface in TextTrieMap for collecting match results.

Field Summary

Modifier and TypeField and Description
private Collection<TimeZoneGenericNames.GenericMatchInfo>
private int
private EnumSet<TimeZoneGenericNames.GenericNameType>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Collection<TimeZoneGenericNames.GenericMatchInfo>

Returns:

the match results
getMatches
()

Returns the match results

public int

Returns:

the maximum match length
getMaxMatchLen
()

Returns the maximum match length, or 0 if no match was found

public boolean
handlePrefixMatch(int
Matched key's length
matchLength
,
Iterator<TimeZoneGenericNames.NameInfo>
An iterator of the objects associated with the matched key
values
)

Implements com.ibm.icu.impl.TextTrieMap.ResultHandler.handlePrefixMatch.

Handles a prefix key match
public void
resetResults()

Resets the match results

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_matchesback to summary
private Collection<TimeZoneGenericNames.GenericMatchInfo> _matches
_maxMatchLenback to summary
private int _maxMatchLen
_typesback to summary
private EnumSet<TimeZoneGenericNames.GenericNameType> _types

Constructor Detail

GenericNameSearchHandlerback to summary
pack-priv GenericNameSearchHandler(EnumSet<TimeZoneGenericNames.GenericNameType> types)

Method Detail

getMatchesback to summary
public Collection<TimeZoneGenericNames.GenericMatchInfo> getMatches()

Returns the match results

Returns:Collection<TimeZoneGenericNames.GenericMatchInfo>

the match results

getMaxMatchLenback to summary
public int getMaxMatchLen()

Returns the maximum match length, or 0 if no match was found

Returns:int

the maximum match length

handlePrefixMatchback to summary
public boolean handlePrefixMatch(int matchLength, Iterator<TimeZoneGenericNames.NameInfo> values)

Implements com.ibm.icu.impl.TextTrieMap.ResultHandler.handlePrefixMatch.

Doc from com.ibm.icu.impl.TextTrieMap.ResultHandler.handlePrefixMatch.

Handles a prefix key match

Parameters
matchLength:int

Matched key's length

values:Iterator<TimeZoneGenericNames.NameInfo>

An iterator of the objects associated with the matched key

Returns:boolean

Return true to continue the search in the trie, false to quit.

Annotations
@Override
resetResultsback to summary
public void resetResults()

Resets the match results

com.ibm.icu.impl back to summary

public final Enum TimeZoneGenericNames.GenericNameType

extends Enum<TimeZoneGenericNames.GenericNameType>
Class Inheritance

Generic name type enum

Field Summary

Modifier and TypeField and Description
pack-priv String[]
public static final TimeZoneGenericNames.GenericNameType
public static final TimeZoneGenericNames.GenericNameType
public static final TimeZoneGenericNames.GenericNameType

Constructor Summary

AccessConstructor and Description
private
GenericNameType(String... fallbackTypeOf)

Method Summary

Modifier and TypeMethod and Description
public boolean
public static TimeZoneGenericNames.GenericNameType
public static TimeZoneGenericNames.GenericNameType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

_fallbackTypeOfback to summary
pack-priv String[] _fallbackTypeOf
LOCATIONback to summary
public static final TimeZoneGenericNames.GenericNameType LOCATION
LONGback to summary
public static final TimeZoneGenericNames.GenericNameType LONG
SHORTback to summary
public static final TimeZoneGenericNames.GenericNameType SHORT

Constructor Detail

GenericNameTypeback to summary
private GenericNameType(String... fallbackTypeOf)

Method Detail

isFallbackTypeOfback to summary
public boolean isFallbackTypeOf(TimeZoneGenericNames.GenericNameType type)
valueOfback to summary
public static TimeZoneGenericNames.GenericNameType valueOf(String name)
valuesback to summary
public static TimeZoneGenericNames.GenericNameType[] values()
com.ibm.icu.impl back to summary

private Class TimeZoneGenericNames.NameInfo

extends Object
Class Inheritance

A private class used for storing the name information in the local trie.

Field Summary

Modifier and TypeField and Description
pack-priv final TimeZoneGenericNames.GenericNameType
pack-priv final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

typeback to summary
pack-priv final TimeZoneGenericNames.GenericNameType type
tzIDback to summary
pack-priv final String tzID

Constructor Detail

NameInfoback to summary
pack-priv NameInfo(String tzID, TimeZoneGenericNames.GenericNameType type)
com.ibm.icu.impl back to summary

public final Enum TimeZoneGenericNames.Pattern

extends Enum<TimeZoneGenericNames.Pattern>
Class Inheritance

Format pattern enum used for composing location and partial location names

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv String
public static final TimeZoneGenericNames.Pattern
public static final TimeZoneGenericNames.Pattern

Constructor Summary

AccessConstructor and Description
private
Pattern(String key, String defaultVal)

Method Summary

Modifier and TypeMethod and Description
pack-priv String
pack-priv String
key()

public static TimeZoneGenericNames.Pattern
public static TimeZoneGenericNames.Pattern[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

_defaultValback to summary
pack-priv String _defaultVal
_keyback to summary
pack-priv String _key
FALLBACK_FORMATback to summary
public static final TimeZoneGenericNames.Pattern FALLBACK_FORMAT
REGION_FORMATback to summary
public static final TimeZoneGenericNames.Pattern REGION_FORMAT

Constructor Detail

Patternback to summary
private Pattern(String key, String defaultVal)

Method Detail

defaultValueback to summary
pack-priv String defaultValue()
keyback to summary
pack-priv String key()
valueOfback to summary
public static TimeZoneGenericNames.Pattern valueOf(String name)
valuesback to summary
public static TimeZoneGenericNames.Pattern[] values()