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 Details

    • matches

      private Iterator<V> matches
    • length

      private int length
  • Constructor Details

    • LongestMatchHandler

      private LongestMatchHandler()
  • Method Details

    • handlePrefixMatch

      public boolean handlePrefixMatch(int matchLength, Iterator<V> values)
      Description copied from interface: TextTrieMap.ResultHandler
      Handles a prefix key match
      Specified by:
      handlePrefixMatch in interface TextTrieMap.ResultHandler<V>
      Parameters:
      matchLength - Matched key's length
      values - 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 Iterator<V> getMatches()
    • getMatchLength

      public int getMatchLength()