public class Level extends Object
Modifier and Type | Field and Description |
---|---|
static Level |
ALL
message level "ALL"
|
static int |
ALL_INT
level value for level "ALL"
|
static Level |
CONFIG
message level "CONFIG"
|
static int |
CONFIG_INT
level value for level "CONFIG"
|
static Level |
FINE
message level "FINE"
|
static int |
FINE_INT
level value for level "FINE"
|
static Level |
FINER
message level "FINER"
|
static int |
FINER_INT
level value for level "FINER"
|
static Level |
FINEST
message level "FINEST"
|
static int |
FINEST_INT
level value for level "FINEST"
|
static Level |
INFO
message level "INFO"
|
static int |
INFO_INT
level value for level "INFO"
|
static Level |
OFF
message level "OFF"
|
static int |
OFF_INT
level value for level "OFF"
|
static Level |
SEVERE
message level "SEVERE"
|
static int |
SEVERE_INT
level value for level "SEVERE"
|
static Level |
WARNING
message level "WARNING"
|
static int |
WARNING_INT
level value for level "WARNING"
|
Modifier | Constructor and Description |
---|---|
protected |
Level(int level,
String levelText)
Instantiate a new level object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isGreaterOrEqual(Level r)
method isGreaterOrEqual() returns true if the argument level is greater or equal to the
specified level.
|
boolean |
isOn()
method isOn() returns true if the message level is not OFF
|
int |
toInteger()
Returns the integer representation of this level.
|
String |
toString()
Returns the string representation of this priority.
|
public static final int OFF_INT
public static final int SEVERE_INT
public static final int WARNING_INT
public static final int INFO_INT
public static final int CONFIG_INT
public static final int FINE_INT
public static final int FINER_INT
public static final int FINEST_INT
public static final int ALL_INT
public static final Level OFF
public static final Level SEVERE
public static final Level WARNING
public static final Level INFO
public static final Level CONFIG
public static final Level FINE
public static final Level FINER
public static final Level FINEST
public static final Level ALL
protected Level(int level, String levelText)
level
- level valuelevelText
- level namepublic boolean equals(Object o)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean isOn()
public boolean isGreaterOrEqual(Level r)
r
- argument level passed to the methodpublic final String toString()
toString
in class Object
Object.toString()
public final int toInteger()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.