Package com.ibm.icu.segmenter
Class LocalizedSegmenter
- java.lang.Object
-
- com.ibm.icu.segmenter.LocalizedSegmenter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LocalizedSegmenter.Builder
Builder forLocalizedSegmenter
static class
LocalizedSegmenter.SegmentationType
The type of segmentation to be performed.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalizedSegmenter.Builder
builder()
Segments
segment(CharSequence s)
Returns aSegments
object that encapsulates the segmentation of the inputCharSequence
.
-
-
-
Method Detail
-
segment
public Segments segment(CharSequence s)
Returns aSegments
object that encapsulates the segmentation of the inputCharSequence
. TheSegments
object, in turn, provides the main APIs to support traversal over the resulting segments and boundaries via the JavaStream
abstraction.- Specified by:
segment
in interfaceSegmenter
- Parameters:
s
- inputCharSequence
on which segmentation is performed. The input must not be modified while using the resultingSegments
object.- Returns:
- A
Segments
object with APIs to access the results of segmentation, including APIs that returnStream
s of the segments and boundaries. - Status:
- Draft ICU 78.
-
builder
public static LocalizedSegmenter.Builder builder()
- Returns:
- a builder for constructing
LocalizedSegmenter
- Status:
- Draft ICU 78.
-
-