Package com.ibm.icu.text
Class TimeZoneNames.MatchInfo
- java.lang.Object
-
- com.ibm.icu.text.TimeZoneNames.MatchInfo
-
- Enclosing class:
- TimeZoneNames
public static class TimeZoneNames.MatchInfo extends Object
AMatchInforepresents a time zone name match used byTimeZoneNames.find(CharSequence, int, EnumSet).- Status:
- Draft ICU 49 (Retain).
-
-
Constructor Summary
Constructors Constructor Description MatchInfo(TimeZoneNames.NameType nameType, String tzID, String mzID, int matchLength)Constructing aMatchInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intmatchLength()Returns the match length.StringmzID()Returns the meta zone ID, ornullif not available.TimeZoneNames.NameTypenameType()Returns the time zone name type.StringtzID()Returns the time zone ID, ornullif not available.
-
-
-
Constructor Detail
-
MatchInfo
public MatchInfo(TimeZoneNames.NameType nameType, String tzID, String mzID, int matchLength)
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)nameTypeisnull, or 2) bothtzIDandmzIDarenull, or 3)matchLengthis 0 or smaller.- See Also:
TimeZoneNames.NameType- Status:
- Draft ICU 49 (Retain).
-
-
Method Detail
-
tzID
public String tzID()
Returns the time zone ID, ornullif not available.Note: A
MatchInfomust have either a time zone ID or a meta zone ID.- Returns:
- the time zone ID, or
null. - See Also:
mzID()- Status:
- Draft ICU 49 (Retain).
-
mzID
public String mzID()
Returns the meta zone ID, ornullif not available.Note: A
MatchInfomust have either a time zone ID or a meta zone ID.- Returns:
- the meta zone ID, or
null. - See Also:
tzID()- Status:
- Draft ICU 49 (Retain).
-
nameType
public TimeZoneNames.NameType nameType()
Returns the time zone name type.- Returns:
- the time zone name type enum.
- See Also:
TimeZoneNames.NameType- Status:
- Draft ICU 49 (Retain).
-
matchLength
public int matchLength()
Returns the match length.- Returns:
- the match length.
- Status:
- Draft ICU 49 (Retain).
-
-