接口 AhoCorasickDoubleArrayTrie.IHitCancellable<V>

  • 封闭类:
    AhoCorasickDoubleArrayTrie<V>

    public static interface AhoCorasickDoubleArrayTrie.IHitCancellable<V>
    Callback that allows to cancel the search process.
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      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
    • 方法详细资料

      • 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
        参数:
        begin - the beginning index, inclusive.
        end - the ending index, exclusive.
        value - the value assigned to the keyword
        返回:
        Return true for continuing the search and false for stopping it.