@ParametersAreNonnullByDefault public enum JohnsonEventLevel extends Enum<JohnsonEventLevel>
TestJohnsonEventLevel
ensures that this file remains in sync with johnson-config.xml
.Modifier and Type | Method and Description |
---|---|
boolean |
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 |
levelName()
Returns the name of the event level for this enum value.
|
static JohnsonEventLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JohnsonEventLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static JohnsonEventLevel |
withName(String levelName)
Returns the enum value with the given level name.
|
public static final JohnsonEventLevel FATAL
public static final JohnsonEventLevel ERROR
public static final JohnsonEventLevel WARNING
public static JohnsonEventLevel[] values()
for (JohnsonEventLevel c : JohnsonEventLevel.values()) System.out.println(c);
public static JohnsonEventLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static JohnsonEventLevel withName(String levelName)
levelName
- the name to match upon (case-insensitively)IllegalArgumentException
- if the name is unknownpublic boolean isAtLeast(JohnsonEventLevel minimumLevel)
minimumLevel
- the minimum level to check againstpublic @NonNull String levelName()
public @NonNull com.atlassian.johnson.event.EventLevel level()
Copyright © 2003–2019 Atlassian. All rights reserved.