Package com.ibm.icu.impl
Class TZDBTimeZoneNames.TZDBNameSearchHandler
- java.lang.Object
-
- com.ibm.icu.impl.TZDBTimeZoneNames.TZDBNameSearchHandler
-
- All Implemented Interfaces:
TextTrieMap.ResultHandler<TZDBTimeZoneNames.TZDBNameInfo>
- Enclosing class:
- TZDBTimeZoneNames
private static class TZDBTimeZoneNames.TZDBNameSearchHandler extends java.lang.Object implements TextTrieMap.ResultHandler<TZDBTimeZoneNames.TZDBNameInfo>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<TimeZoneNames.MatchInfo>
_matches
private java.util.EnumSet<TimeZoneNames.NameType>
_nameTypes
private java.lang.String
_region
-
Constructor Summary
Constructors Constructor Description TZDBNameSearchHandler(java.util.EnumSet<TimeZoneNames.NameType> nameTypes, java.lang.String region)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<TimeZoneNames.MatchInfo>
getMatches()
Returns the match resultsboolean
handlePrefixMatch(int matchLength, java.util.Iterator<TZDBTimeZoneNames.TZDBNameInfo> values)
Handles a prefix key match
-
-
-
Field Detail
-
_nameTypes
private java.util.EnumSet<TimeZoneNames.NameType> _nameTypes
-
_matches
private java.util.Collection<TimeZoneNames.MatchInfo> _matches
-
_region
private java.lang.String _region
-
-
Constructor Detail
-
TZDBNameSearchHandler
TZDBNameSearchHandler(java.util.EnumSet<TimeZoneNames.NameType> nameTypes, java.lang.String region)
-
-
Method Detail
-
handlePrefixMatch
public boolean handlePrefixMatch(int matchLength, java.util.Iterator<TZDBTimeZoneNames.TZDBNameInfo> values)
Description copied from interface:TextTrieMap.ResultHandler
Handles a prefix key match- Specified by:
handlePrefixMatch
in interfaceTextTrieMap.ResultHandler<TZDBTimeZoneNames.TZDBNameInfo>
- Parameters:
matchLength
- Matched key's lengthvalues
- An iterator of the objects associated with the matched key- Returns:
- Return true to continue the search in the trie, false to quit.
-
getMatches
public java.util.Collection<TimeZoneNames.MatchInfo> getMatches()
Returns the match results- Returns:
- the match results
-
-