org.eviline.randomizer
Enum RandomizerPresets

java.lang.Object
  extended by java.lang.Enum<RandomizerPresets>
      extended by org.eviline.randomizer.RandomizerPresets
All Implemented Interfaces:
Serializable, Comparable<RandomizerPresets>, PropertySource

public enum RandomizerPresets
extends Enum<RandomizerPresets>
implements PropertySource


Enum Constant Summary
AGGRESSIVE
           
ANGELIC
           
BIPOLAR
           
EVIL
           
SADISTIC
           
 
Method Summary
 boolean containsKey(String key)
          Does the specified property key exist?
 String get(String key)
          Return the value of the specified property key
 String getName()
           
 Properties getProperties()
           
 Set<String> keys()
          Return the set of all property keys
 Randomizer newRandomizer(Field field)
           
 String put(String key, String value)
          Set the value of the specified property key
static RandomizerPresets valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RandomizerPresets[] 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

SADISTIC

public static final RandomizerPresets SADISTIC

EVIL

public static final RandomizerPresets EVIL

AGGRESSIVE

public static final RandomizerPresets AGGRESSIVE

ANGELIC

public static final RandomizerPresets ANGELIC

BIPOLAR

public static final RandomizerPresets BIPOLAR
Method Detail

values

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

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

valueOf

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

getName

public String getName()

getProperties

public Properties getProperties()

containsKey

public boolean containsKey(String key)
Description copied from interface: PropertySource
Does the specified property key exist?

Specified by:
containsKey in interface PropertySource
Returns:

get

public String get(String key)
Description copied from interface: PropertySource
Return the value of the specified property key

Specified by:
get in interface PropertySource
Returns:

newRandomizer

public Randomizer newRandomizer(Field field)

put

public String put(String key,
                  String value)
Description copied from interface: PropertySource
Set the value of the specified property key

Specified by:
put in interface PropertySource
Returns:

keys

public Set<String> keys()
Description copied from interface: PropertySource
Return the set of all property keys

Specified by:
keys in interface PropertySource
Returns:


Copyright © 2013. All Rights Reserved.