Class LocalizedSegmenter
java.lang.Object
com.ibm.icu.segmenter.LocalizedSegmenter
- All Implemented Interfaces:
Segmenter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forLocalizedSegmenterstatic enumThe type of segmentation to be performed. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLocalizedSegmenter(ULocale locale, LocalizedSegmenter.SegmentationType segmentationType) -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalizedSegmenter.Builderbuilder()Returns aSegmentsobject that encapsulates the segmentation of the inputCharSequence.
-
Field Details
-
breakIterPrototype
-
-
Constructor Details
-
LocalizedSegmenter
-
-
Method Details
-
segment
Returns aSegmentsobject that encapsulates the segmentation of the inputCharSequence. TheSegmentsobject, in turn, provides the main APIs to support traversal over the resulting segments and boundaries via the JavaStreamabstraction.- Specified by:
segmentin interfaceSegmenter- Parameters:
s- inputCharSequenceon which segmentation is performed. The input must not be modified while using the resultingSegmentsobject.- Returns:
- A
Segmentsobject with APIs to access the results of segmentation, including APIs that returnStreams of the segments and boundaries.
-
builder
- Returns:
- a builder for constructing
LocalizedSegmenter
-