management
package instead@Deprecated @Immutable public class AlertLevel extends Object implements 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(Object other)
Deprecated.
Indicates whether some other object is "equal to" this one.
|
static AlertLevel |
forName(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
|
String |
getName()
Deprecated.
|
int |
getSeverity()
Deprecated.
|
int |
hashCode()
Deprecated.
Returns a hash code for the object.
|
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 severityIllegalArgumentException
- If there is no alert level with the given
severity
public static AlertLevel forName(String name)
AlertLevel
with the given namename
- the name of the AlertLevel
to returnAlertLevel
with the given nameIllegalArgumentException
- If there is no alert level named name
public int getSeverity()
public String getName()
public static AlertLevel[] values()
public String toString()
public boolean equals(Object other)