public static class TimeZoneNames.MatchInfo
extends java.lang.Object
MatchInfo represents a time zone name match used by
TimeZoneNames.find(CharSequence, int, EnumSet).| Constructor and Description |
|---|
MatchInfo(TimeZoneNames.NameType nameType,
java.lang.String tzID,
java.lang.String mzID,
int matchLength)
Constructing a
MatchInfo. |
| Modifier and Type | Method and Description |
|---|---|
int |
matchLength()
Returns the match length.
|
java.lang.String |
mzID()
Returns the meta zone ID, or
null if not available. |
TimeZoneNames.NameType |
nameType()
Returns the time zone name type.
|
java.lang.String |
tzID()
Returns the time zone ID, or
null if not available. |
public MatchInfo(TimeZoneNames.NameType nameType, java.lang.String tzID, java.lang.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.java.lang.IllegalArgumentException - when 1) nameType is null,
or 2) both tzID and mzID are null,
or 3) matchLength is 0 or smaller.TimeZoneNames.NameTypepublic java.lang.String tzID()
null if not available.
Note: A MatchInfo must have either a time zone ID
or a meta zone ID.
null.mzID()public java.lang.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.