management package insteadpublic class AlertLevel
extends java.lang.Object
implements java.io.Serializable
Alert level.| Modifier and Type | Field and Description |
|---|---|
static AlertLevel |
ERROR
Deprecated.
|
static AlertLevel |
OFF
Deprecated.
|
int |
ordinal
Deprecated.
int used as ordinal to represent this AlertLevel
|
static AlertLevel |
SEVERE
Deprecated.
|
static AlertLevel |
WARNING
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Deprecated.
Indicates whether some other object is "equal to" this one.
|
static AlertLevel |
forName(java.lang.String name)
Deprecated.
Returns the
AlertLevel with the given name |
static AlertLevel |
forSeverity(int severity)
Deprecated.
Returns the
AlertLevel for the given severity |
static AlertLevel |
fromOrdinal(int ordinal)
Deprecated.
Return the AlertLevel represented by specified ordinal
|
java.lang.String |
getName()
Deprecated.
|
int |
getSeverity()
Deprecated.
|
int |
hashCode()
Deprecated.
Returns a hash code for the object.
|
java.lang.String |
toString()
Deprecated.
Returns a string representation for this alert level.
|
static AlertLevel[] |
values()
Deprecated.
|
public static final AlertLevel WARNING
public static final AlertLevel ERROR
public static final AlertLevel SEVERE
public static final AlertLevel OFF
public final int ordinal
public static AlertLevel fromOrdinal(int ordinal)
public static AlertLevel forSeverity(int severity)
AlertLevel for the given severityjava.lang.IllegalArgumentException - If there is no alert level with the given
severitypublic static AlertLevel forName(java.lang.String name)
AlertLevel with the given namejava.lang.IllegalArgumentException - If there is no alert level named namepublic int getSeverity()
public java.lang.String getName()
public static AlertLevel[] values()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - the reference object with which to compare.public int hashCode()
hashCode in class java.lang.Object