Enum Rants.RantType
- java.lang.Object
-
- java.lang.Enum<Rants.RantType>
-
- com.carrotsearch.randomizedtesting.Rants.RantType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Rants.RantType>
- Enclosing class:
- Rants
static enum Rants.RantType extends java.lang.Enum<Rants.RantType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNOYANCE
DAMN_TERRIBLE
ISHOULDHAVEBECOMEALAWYER
WTF
-
Constructor Summary
Constructors Modifier Constructor Description private
RantType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Rants.RantType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Rants.RantType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANNOYANCE
public static final Rants.RantType ANNOYANCE
-
DAMN_TERRIBLE
public static final Rants.RantType DAMN_TERRIBLE
-
WTF
public static final Rants.RantType WTF
-
ISHOULDHAVEBECOMEALAWYER
public static final Rants.RantType ISHOULDHAVEBECOMEALAWYER
-
-
Method Detail
-
values
public static Rants.RantType[] 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 (Rants.RantType c : Rants.RantType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Rants.RantType 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 namejava.lang.NullPointerException
- if the argument is null
-
-