Package org.testng.internal
Enum MethodSorting
- java.lang.Object
-
- java.lang.Enum<MethodSorting>
-
- org.testng.internal.MethodSorting
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MethodSorting>
,java.util.Comparator<ITestNGMethod>
public enum MethodSorting extends java.lang.Enum<MethodSorting> implements java.util.Comparator<ITestNGMethod>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCES
METHOD_NAMES
NONE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Comparator<ITestNGMethod>
basedOn()
static MethodSorting
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodSorting[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
METHOD_NAMES
public static final MethodSorting METHOD_NAMES
-
INSTANCES
public static final MethodSorting INSTANCES
-
NONE
public static final MethodSorting NONE
-
-
Method Detail
-
values
public static MethodSorting[] 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 (MethodSorting c : MethodSorting.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodSorting 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
-
basedOn
public static java.util.Comparator<ITestNGMethod> basedOn()
-
-