Enum Class JohnsonEventLevel
- All Implemented Interfaces:
Serializable
,Comparable<JohnsonEventLevel>
,Constable
The Johnson event levels defined by this product. Motivation: enum values are more typesafe than strings.
TestJohnsonEventLevel
ensures that this file remains in sync with johnson-config.xml
.- Since:
- 6.5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionboolean
isAtLeast
(JohnsonEventLevel minimumLevel) Indicates whether this event level is at least as severe as the given level.@NonNull com.atlassian.johnson.event.EventLevel
level()
Returns the Johnson-typed event level for this enum value.@NonNull String
Returns the name of the event level for this enum value.static JohnsonEventLevel
Returns the enum constant of this class with the specified name.static JohnsonEventLevel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.static JohnsonEventLevel
Returns the enum value with the given level name.
-
Enum Constant Details
-
FATAL
-
ERROR
-
WARNING
-
-
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
-
withName
Returns the enum value with the given level name.- Parameters:
levelName
- the name to match upon (case-insensitively)- Returns:
- see above
- Throws:
IllegalArgumentException
- if the name is unknown
-
isAtLeast
Indicates whether this event level is at least as severe as the given level.- Parameters:
minimumLevel
- the minimum level to check against- Returns:
- see above
-
levelName
Returns the name of the event level for this enum value.- Returns:
- see above
-
level
public @NonNull com.atlassian.johnson.event.EventLevel level()Returns the Johnson-typed event level for this enum value.- Returns:
- see above
-