Enum Class Status.WarningLevel
- All Implemented Interfaces:
Serializable, Comparable<Status.WarningLevel>, Constable
- Enclosing interface:
Status
Represents a warning level from
Status.warning().- Since:
- 1.12.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Status.WarningLevelReturns the enum constant of this class with the specified name.static Status.WarningLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No warning.No sound will ever be played nor will anything be narrated.
- Since:
- 1.12.0
-
WARNING
A regular warning.The non-severe warning sound will be played and
Status.message()will be narrated.- Since:
- 1.12.0
-
CRITICAL
A critical warning.The severe warning sound will be played and
Status.message()will be narrated.- Since:
- 1.12.0
-
FINAL
A final warning.Behaves the same as
CRITICAL. The severe warning sound will be played andStatus.message()will be narrated.- Since:
- 1.12.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-