Package com.ibm.icu.segmenter
Class Segment
- java.lang.Object
-
- com.ibm.icu.segmenter.Segment
-
public class Segment extends Object
A simple struct to represent an element of the segmentation result. Thestart
andlimit
indices correspond tosource
, the inputCharSequence
that was originally passed to theSegmenter
.start
andlimit
are inclusive and exclusive boundaries, respectively.- Status:
- Draft ICU 78.
-
-
Field Summary
Fields Modifier and Type Field Description int
limit
int
ruleStatus
int
start
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharSequence
getSubSequence()
Returns the subsequence represented by thisSegment
-
-
-
Field Detail
-
start
public final int start
- Status:
- Draft ICU 78.
-
limit
public final int limit
- Status:
- Draft ICU 78.
-
ruleStatus
public final int ruleStatus
- See Also:
- Constant Field Values
- Status:
- Draft ICU 78.
-
-
Method Detail
-
getSubSequence
public CharSequence getSubSequence()
Returns the subsequence represented by thisSegment
- Returns:
- a new
CharSequence
object that is the subsequence represented by thisSegment
. - Status:
- Draft ICU 78.
-
-