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