Enum InterruptionJobDelay
- java.lang.Object
-
- java.lang.Enum<InterruptionJobDelay>
-
- com.epam.ta.reportportal.entity.enums.InterruptionJobDelay
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<InterruptionJobDelay>
public enum InterruptionJobDelay extends java.lang.Enum<InterruptionJobDelay>
Interruption job delay parameters enumerator
User for supporting UI types of project parameter
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ONE_DAYONE_HOURONE_WEEKSIX_HOURSTHREE_HOURSTWELVE_HOURS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<InterruptionJobDelay>findByName(java.lang.String name)longgetPeriod()java.lang.StringgetValue()static booleanisPresent(java.lang.String name)static InterruptionJobDelayvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static InterruptionJobDelay[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE_HOUR
public static final InterruptionJobDelay ONE_HOUR
-
THREE_HOURS
public static final InterruptionJobDelay THREE_HOURS
-
SIX_HOURS
public static final InterruptionJobDelay SIX_HOURS
-
TWELVE_HOURS
public static final InterruptionJobDelay TWELVE_HOURS
-
ONE_DAY
public static final InterruptionJobDelay ONE_DAY
-
ONE_WEEK
public static final InterruptionJobDelay ONE_WEEK
-
-
Method Detail
-
values
public static InterruptionJobDelay[] 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 (InterruptionJobDelay c : InterruptionJobDelay.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InterruptionJobDelay 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
-
getValue
public java.lang.String getValue()
-
getPeriod
public long getPeriod()
-
findByName
public static java.util.Optional<InterruptionJobDelay> findByName(java.lang.String name)
-
isPresent
public static boolean isPresent(java.lang.String name)
-
-