org.mmbase.util
Enum LocaleCollator.Strength

java.lang.Object
  extended by java.lang.Enum<LocaleCollator.Strength>
      extended by org.mmbase.util.LocaleCollator.Strength
All Implemented Interfaces:
Serializable, Comparable<LocaleCollator.Strength>
Enclosing class:
LocaleCollator

public static enum LocaleCollator.Strength
extends Enum<LocaleCollator.Strength>

An enum wrapping the 'strength' related constants of Collator. Mainly because valueOf(String) is used in the implementation of LocaleCollator.getInstance(String).


Enum Constant Summary
IDENTICAL
          Wraps Collator.IDENTICAL
PRIMARY
          Wraps Collator.PRIMARY
SECONDARY
          Wraps Collator.SECONDARY
TERTIARY
          Wraps Collator.TERTIARY
 
Method Summary
 int get()
           
static LocaleCollator.Strength valueOf(int i)
           
static LocaleCollator.Strength valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LocaleCollator.Strength[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IDENTICAL

public static final LocaleCollator.Strength IDENTICAL
Wraps Collator.IDENTICAL


PRIMARY

public static final LocaleCollator.Strength PRIMARY
Wraps Collator.PRIMARY


SECONDARY

public static final LocaleCollator.Strength SECONDARY
Wraps Collator.SECONDARY


TERTIARY

public static final LocaleCollator.Strength TERTIARY
Wraps Collator.TERTIARY

Method Detail

values

public static LocaleCollator.Strength[] 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.Strength c : LocaleCollator.Strength.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.Strength 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.Strength valueOf(int i)
Parameters:
i - Collator.IDENTICAL, Collator.PRIMARY, Collator.SECONDARY or Collator.TERTIARY.


MMBase 2.0-SNAPSHOT - null