Enum KeepScreenshotsDelay
- java.lang.Object
-
- java.lang.Enum<KeepScreenshotsDelay>
-
- com.epam.ta.reportportal.entity.enums.KeepScreenshotsDelay
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<KeepScreenshotsDelay>
public enum KeepScreenshotsDelay extends java.lang.Enum<KeepScreenshotsDelay>
Keep Screenshots Delay values enumerator Describe possible values of 'Keep screenshots' parameter on UI project page
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FOREVERONE_MONTHONE_WEEKTHREE_MONTHSTHREE_WEEKSTWO_WEEKS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<KeepScreenshotsDelay>findByName(java.lang.String name)longgetDays()java.lang.StringgetValue()static booleanisPresent(java.lang.String name)static KeepScreenshotsDelayvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static KeepScreenshotsDelay[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE_WEEK
public static final KeepScreenshotsDelay ONE_WEEK
-
TWO_WEEKS
public static final KeepScreenshotsDelay TWO_WEEKS
-
THREE_WEEKS
public static final KeepScreenshotsDelay THREE_WEEKS
-
ONE_MONTH
public static final KeepScreenshotsDelay ONE_MONTH
-
THREE_MONTHS
public static final KeepScreenshotsDelay THREE_MONTHS
-
FOREVER
public static final KeepScreenshotsDelay FOREVER
-
-
Method Detail
-
values
public static KeepScreenshotsDelay[] 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 (KeepScreenshotsDelay c : KeepScreenshotsDelay.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeepScreenshotsDelay 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()
-
getDays
public long getDays()
-
findByName
public static java.util.Optional<KeepScreenshotsDelay> findByName(java.lang.String name)
-
isPresent
public static boolean isPresent(java.lang.String name)
-
-