org.cassandraunit.model
Enum StrategyModel
java.lang.Object
java.lang.Enum<StrategyModel>
org.cassandraunit.model.StrategyModel
- All Implemented Interfaces:
- Serializable, Comparable<StrategyModel>
public enum StrategyModel
- extends Enum<StrategyModel>
- Author:
- Jeremy Sevellec
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
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.