Package com.hankcs.algorithm
Interface AhoCorasickDoubleArrayTrie.IHitCancellable<V>
-
- Enclosing class:
- AhoCorasickDoubleArrayTrie<V>
public static interface AhoCorasickDoubleArrayTrie.IHitCancellable<V>
Callback that allows to cancel the search process.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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 Detail
-
hit
boolean 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- Returns:
- Return true for continuing the search and false for stopping it.
-
-