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 Object
implements TextTrieMap.ResultHandler<TZDBTimeZoneNames.TZDBNameInfo>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Collection<TimeZoneNames.MatchInfo>
private EnumSet<TimeZoneNames.NameType>
private String
-
Constructor Summary
ConstructorsConstructorDescriptionTZDBNameSearchHandler
(EnumSet<TimeZoneNames.NameType> nameTypes, String region) -
Method Summary
Modifier and TypeMethodDescriptionReturns the match resultsboolean
handlePrefixMatch
(int matchLength, Iterator<TZDBTimeZoneNames.TZDBNameInfo> values) Handles a prefix key match
-
Field Details
-
_nameTypes
-
_matches
-
_region
-
-
Constructor Details
-
TZDBNameSearchHandler
TZDBNameSearchHandler(EnumSet<TimeZoneNames.NameType> nameTypes, String region)
-
-
Method Details
-
handlePrefixMatch
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
Returns the match results- Returns:
- the match results
-