plugins.big.bigsnake.snake
Enum ESnakeEnergyType
java.lang.Object
java.lang.Enum<ESnakeEnergyType>
plugins.big.bigsnake.snake.ESnakeEnergyType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ESnakeEnergyType>
public enum ESnakeEnergyType
- extends java.lang.Enum<ESnakeEnergyType>
Types of energy of the E-Snake.
- Version:
- May 3, 2014
- Author:
- Ricard Delgado-Gonzalo (ricard.delgado@gmail.com)
Method Summary |
static ESnakeEnergyType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ESnakeEnergyType[] |
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 |
CONTOUR
public static final ESnakeEnergyType CONTOUR
REGION
public static final ESnakeEnergyType REGION
MIXTURE
public static final ESnakeEnergyType MIXTURE
values
public static ESnakeEnergyType[] 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 (ESnakeEnergyType c : ESnakeEnergyType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ESnakeEnergyType 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
java.lang.NullPointerException
- if the argument is null