public static enum CommandLine.TraceLevel extends Enum<CommandLine.TraceLevel>
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled(CommandLine.TraceLevel other)
Returns whether messages at the specified
other trace level would be printed for the current trace level. |
static CommandLine.TraceLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandLine.TraceLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandLine.TraceLevel OFF
public static final CommandLine.TraceLevel WARN
public static final CommandLine.TraceLevel INFO
public static final CommandLine.TraceLevel DEBUG
public static CommandLine.TraceLevel[] values()
for (CommandLine.TraceLevel c : CommandLine.TraceLevel.values()) System.out.println(c);
public static CommandLine.TraceLevel 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 boolean isEnabled(CommandLine.TraceLevel other)
other
trace level would be printed for the current trace level.