Package com.ibm.icu.segmenter
Class LocalizedSegmenter.Builder
- java.lang.Object
-
- com.ibm.icu.segmenter.LocalizedSegmenter.Builder
-
- Enclosing class:
- LocalizedSegmenter
public static class LocalizedSegmenter.Builder extends Object
Builder forLocalizedSegmenter- Status:
- Draft ICU 78.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Segmenterbuild()Builds theSegmenterLocalizedSegmenter.BuildersetLocale(ULocale locale)Set the locale for which segmentation rules will be loadedLocalizedSegmenter.BuildersetLocale(Locale locale)Set the locale for which segmentation rules will be loadedLocalizedSegmenter.BuildersetSegmentationType(LocalizedSegmenter.SegmentationType segmentationType)Set the segmentation type to be performed.
-
-
-
Method Detail
-
setLocale
public LocalizedSegmenter.Builder setLocale(ULocale locale)
Set the locale for which segmentation rules will be loaded- Parameters:
locale- an ICU locale object- Status:
- Draft ICU 78.
-
setLocale
public LocalizedSegmenter.Builder setLocale(Locale locale)
Set the locale for which segmentation rules will be loaded- Parameters:
locale- a Java locale object- Status:
- Draft ICU 78.
-
setSegmentationType
public LocalizedSegmenter.Builder setSegmentationType(LocalizedSegmenter.SegmentationType segmentationType)
Set the segmentation type to be performed.- Parameters:
segmentationType-- Status:
- Draft ICU 78.
-
build
public Segmenter build()
Builds theSegmenter- Returns:
- the constructed
Segmenterinstance - Status:
- Draft ICU 78.
-
-