Package org.openjdk.jcstress.samples
Enum APISample_03_Termination_jcstress.Outcome
- java.lang.Object
-
- java.lang.Enum<APISample_03_Termination_jcstress.Outcome>
-
- org.openjdk.jcstress.samples.APISample_03_Termination_jcstress.Outcome
-
- All Implemented Interfaces:
Serializable,Comparable<APISample_03_Termination_jcstress.Outcome>
- Enclosing class:
- APISample_03_Termination_jcstress
public static enum APISample_03_Termination_jcstress.Outcome extends Enum<APISample_03_Termination_jcstress.Outcome>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERRORSTALETERMINATED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static APISample_03_Termination_jcstress.OutcomevalueOf(String name)Returns the enum constant of this type with the specified name.static APISample_03_Termination_jcstress.Outcome[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TERMINATED
public static final APISample_03_Termination_jcstress.Outcome TERMINATED
-
STALE
public static final APISample_03_Termination_jcstress.Outcome STALE
-
ERROR
public static final APISample_03_Termination_jcstress.Outcome ERROR
-
-
Method Detail
-
values
public static APISample_03_Termination_jcstress.Outcome[] 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 (APISample_03_Termination_jcstress.Outcome c : APISample_03_Termination_jcstress.Outcome.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static APISample_03_Termination_jcstress.Outcome 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 nameNullPointerException- if the argument is null
-
-