Enum StatusEnum
- java.lang.Object
-
- java.lang.Enum<StatusEnum>
-
- com.epam.ta.reportportal.entity.enums.StatusEnum
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<StatusEnum>
public enum StatusEnum extends java.lang.Enum<StatusEnum>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELLEDFAILEDIN_PROGRESSINFOINTERRUPTEDPASSEDSKIPPEDSTOPPEDWARN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<StatusEnum>fromValue(java.lang.String value)java.lang.StringgetExecutionCounterField()booleanisPositive()static booleanisPresent(java.lang.String name)static StatusEnumvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static StatusEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IN_PROGRESS
public static final StatusEnum IN_PROGRESS
-
PASSED
public static final StatusEnum PASSED
-
FAILED
public static final StatusEnum FAILED
-
STOPPED
public static final StatusEnum STOPPED
-
SKIPPED
public static final StatusEnum SKIPPED
-
INTERRUPTED
public static final StatusEnum INTERRUPTED
-
CANCELLED
public static final StatusEnum CANCELLED
-
INFO
public static final StatusEnum INFO
-
WARN
public static final StatusEnum WARN
-
-
Method Detail
-
values
public static StatusEnum[] 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 (StatusEnum c : StatusEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatusEnum 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
-
fromValue
public static java.util.Optional<StatusEnum> fromValue(java.lang.String value)
-
isPresent
public static boolean isPresent(java.lang.String name)
-
getExecutionCounterField
public java.lang.String getExecutionCounterField()
-
isPositive
public boolean isPositive()
-
-