Package com.ibm.icu.segmenter
Enum LocalizedSegmenter.SegmentationType
- java.lang.Object
-
- java.lang.Enum<LocalizedSegmenter.SegmentationType>
-
- com.ibm.icu.segmenter.LocalizedSegmenter.SegmentationType
-
- All Implemented Interfaces:
Serializable,Comparable<LocalizedSegmenter.SegmentationType>
- Enclosing class:
- LocalizedSegmenter
public static enum LocalizedSegmenter.SegmentationType extends Enum<LocalizedSegmenter.SegmentationType>
The type of segmentation to be performed. See the ICU User Guide page Boundary Analysis for further details.- Status:
- Draft ICU 78.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GRAPHEME_CLUSTERLINESENTENCEWORD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LocalizedSegmenter.SegmentationTypevalueOf(String name)Returns the enum constant of this type with the specified name.static LocalizedSegmenter.SegmentationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GRAPHEME_CLUSTER
public static final LocalizedSegmenter.SegmentationType GRAPHEME_CLUSTER
- Status:
- Draft ICU 78.
-
WORD
public static final LocalizedSegmenter.SegmentationType WORD
- Status:
- Draft ICU 78.
-
LINE
public static final LocalizedSegmenter.SegmentationType LINE
- Status:
- Draft ICU 78.
-
SENTENCE
public static final LocalizedSegmenter.SegmentationType SENTENCE
- Status:
- Draft ICU 78.
-
-
Method Detail
-
values
public static LocalizedSegmenter.SegmentationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LocalizedSegmenter.SegmentationType c : LocalizedSegmenter.SegmentationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LocalizedSegmenter.SegmentationType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-