public static enum Incident.IncidentSeverity extends Enum<Incident.IncidentSeverity>
Incident
.Enum Constant and Description |
---|
HIGH_IMPACT
High Impact.
|
LOW_IMPACT
Low Impact.
|
MINIMAL_IMPACT
Minimal impact.
|
MODERATE_IMPACT
Moderate Impact.
|
SEVERE_IMPACT
Severe Impact.
|
Modifier and Type | Method and Description |
---|---|
static int |
compare(Incident.IncidentSeverity severity1,
Incident.IncidentSeverity severity2)
Compare two
Incident.IncidentSeverity s. |
static Incident.IncidentSeverity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Incident.IncidentSeverity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Incident.IncidentSeverity MINIMAL_IMPACT
public static final Incident.IncidentSeverity LOW_IMPACT
public static final Incident.IncidentSeverity MODERATE_IMPACT
public static final Incident.IncidentSeverity HIGH_IMPACT
public static final Incident.IncidentSeverity SEVERE_IMPACT
public static Incident.IncidentSeverity[] values()
for (Incident.IncidentSeverity c : Incident.IncidentSeverity.values()) System.out.println(c);
public static Incident.IncidentSeverity 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 static int compare(@NonNull Incident.IncidentSeverity severity1, @NonNull Incident.IncidentSeverity severity2)
Incident.IncidentSeverity
s.severity1
- The first Incident.IncidentSeverity
to compare.severity2
- The second Incident.IncidentSeverity
to compare.severity1
is less severe than severity2
, a positive integer if severity1
is more severe than severity2
, or 0
if they are equally severe.Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.