Package com.ibm.icu.text
Class TimeZoneNames.MatchInfo
java.lang.Object
com.ibm.icu.text.TimeZoneNames.MatchInfo
- Enclosing class:
TimeZoneNames
A
MatchInfo
represents a time zone name match used by
TimeZoneNames.find(CharSequence, int, EnumSet)
.-
Constructor Summary
ConstructorsConstructorDescriptionMatchInfo
(TimeZoneNames.NameType nameType, String tzID, String mzID, int matchLength) Constructing aMatchInfo
. -
Method Summary
-
Constructor Details
-
MatchInfo
Constructing aMatchInfo
.- Parameters:
nameType
- the name type enum.tzID
- the time zone ID, or nullmzID
- the meta zone ID, or nullmatchLength
- the match length.- Throws:
IllegalArgumentException
- when 1)nameType
isnull
, or 2) bothtzID
andmzID
arenull
, or 3)matchLength
is 0 or smaller.- See Also:
-
-
Method Details
-
tzID
Returns the time zone ID, ornull
if not available.Note: A
MatchInfo
must have either a time zone ID or a meta zone ID.- Returns:
- the time zone ID, or
null
. - See Also:
-
mzID
Returns the meta zone ID, ornull
if not available.Note: A
MatchInfo
must have either a time zone ID or a meta zone ID.- Returns:
- the meta zone ID, or
null
. - See Also:
-
nameType
Returns the time zone name type.- Returns:
- the time zone name type enum.
- See Also:
-
matchLength
public int matchLength()Returns the match length.- Returns:
- the match length.
-