Interface WordSegmenter.SegmentConsumer

Enclosing class:
WordSegmenter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface WordSegmenter.SegmentConsumer
Receives each word segment as the half-open character range [start, end).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(int start, int end)
    Accepts one segment.
  • Method Details

    • accept

      void accept(int start, int end)
      Accepts one segment.
      Parameters:
      start - The inclusive start character offset.
      end - The exclusive end character offset.