public enum LoggingLevel extends Enum<LoggingLevel> implements FieldEnum<LoggingLevel,Integer>
| Enum Constant and Description |
|---|
ALL |
CONFIG |
FINE |
FINER |
FINEST |
INFO |
OFF |
SEVERE |
WARNING |
| Modifier and Type | Method and Description |
|---|---|
Integer[] |
fieldValues()
Returns an array containing the field values of this enum type, in order
they are declared.
|
static LoggingLevel |
fromFieldValue(int fieldValue)
Returns the enum constant of this type with the specified field value.
|
static LoggingLevel |
fromLevel(Level level)
Returns the enum constant of this type with the specified level's int
value.
|
Integer |
getFieldValue()
Returns field value.
|
static LoggingLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoggingLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoggingLevel OFF
public static final LoggingLevel SEVERE
public static final LoggingLevel WARNING
public static final LoggingLevel INFO
public static final LoggingLevel CONFIG
public static final LoggingLevel FINE
public static final LoggingLevel FINER
public static final LoggingLevel FINEST
public static final LoggingLevel ALL
public static LoggingLevel[] values()
for (LoggingLevel c : LoggingLevel.values()) System.out.println(c);
public static LoggingLevel 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 LoggingLevel fromFieldValue(int fieldValue)
fieldValue - field valueIllegalArgumentException - if this enum type has no constant with
the specified field value.public static LoggingLevel fromLevel(Level level)
level - levelIllegalArgumentException - if this enum type has no constant with
the specified level's int value.public Integer[] fieldValues()
public Integer getFieldValue()
FieldEnumgetFieldValue in interface FieldEnum<LoggingLevel,Integer>Copyright © 2011-2013. All Rights Reserved.