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