Package com.ibm.icu.text
Enum UnicodeSet.ComparisonStyle
- java.lang.Object
-
- java.lang.Enum<UnicodeSet.ComparisonStyle>
-
- com.ibm.icu.text.UnicodeSet.ComparisonStyle
-
- All Implemented Interfaces:
Serializable
,Comparable<UnicodeSet.ComparisonStyle>
- Enclosing class:
- UnicodeSet
public static enum UnicodeSet.ComparisonStyle extends Enum<UnicodeSet.ComparisonStyle>
Comparison style enums used byUnicodeSet.compareTo(UnicodeSet, ComparisonStyle)
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LEXICOGRAPHIC
LONGER_FIRST
SHORTER_FIRST
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnicodeSet.ComparisonStyle
valueOf(String name)
Returns the enum constant of this type with the specified name.static UnicodeSet.ComparisonStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHORTER_FIRST
public static final UnicodeSet.ComparisonStyle SHORTER_FIRST
-
LEXICOGRAPHIC
public static final UnicodeSet.ComparisonStyle LEXICOGRAPHIC
-
LONGER_FIRST
public static final UnicodeSet.ComparisonStyle LONGER_FIRST
-
-
Method Detail
-
values
public static UnicodeSet.ComparisonStyle[] 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 (UnicodeSet.ComparisonStyle c : UnicodeSet.ComparisonStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnicodeSet.ComparisonStyle 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
-
-