Class Segment


  • public class Segment
    extends Object
    A simple struct to represent an element of the segmentation result. The start and limit indices correspond to source, the input CharSequence that was originally passed to the Segmenter. start and limit are inclusive and exclusive boundaries, respectively.
    Status:
    Draft ICU 78.
    • Field Detail

      • start

        public final int start
        Status:
        Draft ICU 78.
      • limit

        public final int limit
        Status:
        Draft ICU 78.
    • Method Detail

      • getSubSequence

        public CharSequence getSubSequence()
        Returns the subsequence represented by this Segment
        Returns:
        a new CharSequence object that is the subsequence represented by this Segment.
        Status:
        Draft ICU 78.