org.cassandraunit.model
Enum StrategyModel

java.lang.Object
  extended by java.lang.Enum<StrategyModel>
      extended by org.cassandraunit.model.StrategyModel
All Implemented Interfaces:
Serializable, Comparable<StrategyModel>

public enum StrategyModel
extends Enum<StrategyModel>

Author:
Jeremy Sevellec

Enum Constant Summary
LOCAL_STRATEGY
           
NETWORK_TOPOLOGY_STRATEGY
           
SIMPLE_STRATEGY
           
 
Method Summary
static StrategyModel fromValue(String v)
           
 String toString()
           
 String value()
           
static StrategyModel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StrategyModel[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LOCAL_STRATEGY

public static final StrategyModel LOCAL_STRATEGY

NETWORK_TOPOLOGY_STRATEGY

public static final StrategyModel NETWORK_TOPOLOGY_STRATEGY

SIMPLE_STRATEGY

public static final StrategyModel SIMPLE_STRATEGY
Method Detail

values

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

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

valueOf

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

value

public String value()

fromValue

public static StrategyModel fromValue(String v)

toString

public String toString()
Overrides:
toString in class Enum<StrategyModel>


Copyright © 2012. All Rights Reserved.