public enum Level extends java.lang.Enum<Level>
Enum Constant and Description |
---|
ALL |
CONFIG |
DEBUG |
DETAIL |
ERROR |
FATAL |
INFO |
OFF |
TRACE |
WARNING |
Modifier and Type | Field and Description |
---|---|
private int |
intValue |
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Gets level value in integer form.
|
boolean |
isHigherThan(Level level)
Checks whether this level is higher than the given one.
|
boolean |
isLowerThan(Level level)
Checks whether this level is lower than the given one.
|
boolean |
notHigherThan(Level level)
Checks whether this level is not lower than the given
one.
|
boolean |
notLowerThan(Level level)
Checks whether this level is not higher than the given
one.
|
java.lang.String |
toString(java.util.Locale locale)
Returns a localized string representation of the object.
|
static Level |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Level[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Level ALL
public static final Level DETAIL
public static final Level TRACE
public static final Level DEBUG
public static final Level CONFIG
public static final Level INFO
public static final Level WARNING
public static final Level ERROR
public static final Level FATAL
public static final Level OFF
public static Level[] values()
for (Level c : Level.values()) System.out.println(c);
public static Level valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public final boolean isHigherThan(Level level)
level
- - Consider that null level is higher than any level.public final boolean notLowerThan(Level level)
level
- - Consider that null level is higher than any level.public final boolean isLowerThan(Level level)
level
- - Consider that null level is higher than any level.public final boolean notHigherThan(Level level)
level
- - Consider that null level is higher than any level.public java.lang.String toString(java.util.Locale locale)
locale
- - Locale.