org.decisiondeck.jmcda.services.sorting
Enum SortingMode

java.lang.Object
  extended by java.lang.Enum<SortingMode>
      extended by org.decisiondeck.jmcda.services.sorting.SortingMode
All Implemented Interfaces:
Serializable, Comparable<SortingMode>

public enum SortingMode
extends Enum<SortingMode>


Enum Constant Summary
BOTH
          Each alternative assigned to both the optimistic and the pessimistic categories, as well as each category in between.
OPTIMISTIC
           
PESSIMISTIC
           
 
Method Summary
static Collection<String> strings()
           
static SortingMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SortingMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OPTIMISTIC

public static final SortingMode OPTIMISTIC

PESSIMISTIC

public static final SortingMode PESSIMISTIC

BOTH

public static final SortingMode BOTH
Each alternative assigned to both the optimistic and the pessimistic categories, as well as each category in between.

Method Detail

values

public static SortingMode[] 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 (SortingMode c : SortingMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SortingMode 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

strings

public static Collection<String> strings()


Copyright © 2011. All Rights Reserved.