org.mmbase.util
Enum LocaleCollator.Decomposition
java.lang.Object
java.lang.Enum<LocaleCollator.Decomposition>
org.mmbase.util.LocaleCollator.Decomposition
- All Implemented Interfaces:
- Serializable, Comparable<LocaleCollator.Decomposition>
- Enclosing class:
- LocaleCollator
public static enum LocaleCollator.Decomposition
- extends Enum<LocaleCollator.Decomposition>
An enum wrapping the 'decompositon' related constants of Collator. Mainly because valueOf(String) is used in the implementation of LocaleCollator.getInstance(String).
CANONICAL
public static final LocaleCollator.Decomposition CANONICAL
FULL
public static final LocaleCollator.Decomposition FULL
NO
public static final LocaleCollator.Decomposition NO
values
public static LocaleCollator.Decomposition[] 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 (LocaleCollator.Decomposition c : LocaleCollator.Decomposition.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static LocaleCollator.Decomposition 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 name
NullPointerException - if the argument is null
get
public int get()
valueOf
public static LocaleCollator.Decomposition valueOf(int i)
- Parameters:
i - Collator.CANONICAL_DECOMPOSITION, Collator.FULL_DECOMPOSITION or Collator.NO_DECOMPOSITION.
MMBase 2.0-SNAPSHOT - null