Interface AhoCorasickDoubleArrayTrie.IHit<V>

Enclosing class:
AhoCorasickDoubleArrayTrie<V>

public static interface AhoCorasickDoubleArrayTrie.IHit<V>
Processor handles the output when hit a keyword
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    hit(int begin, int end, V value)
    Hit a keyword, you can use some code like text.substring(begin, end) to get the keyword
  • Method Details

    • hit

      void hit(int begin, int end, V value)
      Hit a keyword, you can use some code like text.substring(begin, end) to get the keyword
      Parameters:
      begin - the beginning index, inclusive.
      end - the ending index, exclusive.
      value - the value assigned to the keyword