Package com.ibm.icu.impl
Class TextTrieMap.LongestMatchHandler<V>
java.lang.Object
com.ibm.icu.impl.TextTrieMap.LongestMatchHandler<V>
- All Implemented Interfaces:
TextTrieMap.ResultHandler<V>
- Enclosing class:
TextTrieMap<V>
private static class TextTrieMap.LongestMatchHandler<V>
extends Object
implements TextTrieMap.ResultHandler<V>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
handlePrefixMatch
(int matchLength, Iterator<V> values) Handles a prefix key match
-
Field Details
-
matches
-
length
private int length
-
-
Constructor Details
-
LongestMatchHandler
private LongestMatchHandler()
-
-
Method Details
-
handlePrefixMatch
Description copied from interface:TextTrieMap.ResultHandler
Handles a prefix key match- Specified by:
handlePrefixMatch
in interfaceTextTrieMap.ResultHandler<V>
- 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
-
getMatchLength
public int getMatchLength()
-