management
package instead@Deprecated
@Immutable
public 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.
|
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.
|
@Immutable public static final AlertLevel WARNING
@Immutable public static final AlertLevel ERROR
@Immutable public static final AlertLevel SEVERE
@Immutable public static final AlertLevel OFF
public final int ordinal
public static AlertLevel fromOrdinal(int ordinal)
ordinal - the ordinal of the AlertLevel to returnAlertLevel with the given ordinalpublic static AlertLevel forSeverity(int severity)
AlertLevel for the given severityseverity - the severity of the AlertLevel to returnAlertLevel with 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 namename - the name of the AlertLevel to returnAlertLevel 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