Enum Class Message.Type
- All Implemented Interfaces:
Serializable
,Comparable<Message.Type>
,java.lang.constant.Constable
- Enclosing class:
- Message
Severity for a message
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsed for messages which display serious errors that stop the user to work.Used for messages that inform the user about application state.Used for neutral messages like chat messages.Used for messages that tell the user about success of a certain action.Used for messages that inform the user about important situations or necessary user interactions. -
Method Summary
Modifier and TypeMethodDescriptionstatic Message.Type
Returns the enum constant of this class with the specified name.static Message.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CRITICAL
Used for messages which display serious errors that stop the user to work. -
WARNING
Used for messages that inform the user about important situations or necessary user interactions. -
INFO
Used for messages that inform the user about application state. -
SUCCESS
Used for messages that tell the user about success of a certain action. -
NEUTRAL
Used for neutral messages like chat messages.
-
-
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
-