public static class TimeZoneNames.MatchInfo extends Object
MatchInfo represents a time zone name match used by
TimeZoneNames.find(CharSequence, int, EnumSet).| Constructor and Description |
|---|
MatchInfo(TimeZoneNames.NameType nameType,
String tzID,
String mzID,
int matchLength)
Constructing a
MatchInfo. |
| Modifier and Type | Method and Description |
|---|---|
int |
matchLength()
Returns the match length.
|
String |
mzID()
Returns the meta zone ID, or
null if not available. |
TimeZoneNames.NameType |
nameType()
Returns the time zone name type.
|
String |
tzID()
Returns the time zone ID, or
null if not available. |
public MatchInfo(TimeZoneNames.NameType nameType, String tzID, String mzID, int matchLength)
MatchInfo.nameType - the name type enum.tzID - the time zone ID, or nullmzID - the meta zone ID, or nullmatchLength - the match length.IllegalArgumentException - when 1) nameType is null,
or 2) both tzID and mzID are null,
or 3) matchLength is 0 or smaller.TimeZoneNames.NameTypepublic String tzID()
null if not available.
Note: A MatchInfo must have either a time zone ID
or a meta zone ID.
null.mzID()public String mzID()
null if not available.
Note: A MatchInfo must have either a time zone ID
or a meta zone ID.
null.tzID()public TimeZoneNames.NameType nameType()
TimeZoneNames.NameTypepublic int matchLength()
Copyright © 2016 Unicode, Inc. and others.