public enum OnmsSeverity extends Enum<OnmsSeverity> implements Serializable
Enum Constant and Description |
---|
CLEARED |
CRITICAL |
INDETERMINATE |
MAJOR |
MINOR |
NORMAL |
WARNING |
Modifier and Type | Method and Description |
---|---|
static OnmsSeverity |
escalate(OnmsSeverity sev)
escalate
|
static OnmsSeverity |
get(int id)
get
|
static OnmsSeverity |
get(String label)
get
|
String |
getColor()
getColor
|
int |
getId()
getId
|
String |
getLabel()
getLabel
|
boolean |
isGreaterThan(OnmsSeverity other)
isGreaterThan
|
boolean |
isGreaterThanOrEqual(OnmsSeverity other)
isGreaterThanOrEqual
|
boolean |
isLessThan(OnmsSeverity other)
isLessThan
|
boolean |
isLessThanOrEqual(OnmsSeverity other)
isLessThanOrEqual
|
static List<String> |
names() |
static OnmsSeverity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OnmsSeverity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OnmsSeverity INDETERMINATE
public static final OnmsSeverity CLEARED
public static final OnmsSeverity NORMAL
public static final OnmsSeverity WARNING
public static final OnmsSeverity MINOR
public static final OnmsSeverity MAJOR
public static final OnmsSeverity CRITICAL
public static OnmsSeverity[] values()
for (OnmsSeverity c : OnmsSeverity.values()) System.out.println(c);
public static OnmsSeverity 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 int getId()
getId
public boolean isLessThan(OnmsSeverity other)
isLessThan
other
- a OnmsSeverity
object.public boolean isLessThanOrEqual(OnmsSeverity other)
isLessThanOrEqual
other
- a OnmsSeverity
object.public boolean isGreaterThan(OnmsSeverity other)
isGreaterThan
other
- a OnmsSeverity
object.public boolean isGreaterThanOrEqual(OnmsSeverity other)
isGreaterThanOrEqual
other
- a OnmsSeverity
object.public static OnmsSeverity get(int id)
get
id
- a int.OnmsSeverity
object.public static OnmsSeverity get(String label)
get
label
- a String
object.OnmsSeverity
object.public static OnmsSeverity escalate(OnmsSeverity sev)
escalate
sev
- a OnmsSeverity
object.OnmsSeverity
object.Copyright © 2021. All rights reserved.