com.kccoder.fracture
Enum CoreMode

java.lang.Object
  extended by java.lang.Enum<CoreMode>
      extended by com.kccoder.fracture.CoreMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CoreMode>

public enum CoreMode
extends java.lang.Enum<CoreMode>


Enum Constant Summary
ALL_CORES
           
ALL_CORES_BUT_ONE
           
FOUR_CORES
           
ONE_CORE
           
THREE_CORES
           
TWO_CORES
           
 
Method Summary
static CoreMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CoreMode[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

ONE_CORE

public static final CoreMode ONE_CORE

TWO_CORES

public static final CoreMode TWO_CORES

THREE_CORES

public static final CoreMode THREE_CORES

FOUR_CORES

public static final CoreMode FOUR_CORES

ALL_CORES

public static final CoreMode ALL_CORES

ALL_CORES_BUT_ONE

public static final CoreMode ALL_CORES_BUT_ONE
Method Detail

values

public static final CoreMode[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CoreMode c : CoreMode.values())
        System.out.println(c);

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

valueOf

public static CoreMode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name