public enum DefectSeverity extends Enum<DefectSeverity> implements HasName
| Enum Constant and Description |
|---|
CRITICAL
Critical defect severity (vehicle or trailer is unsafe to operate).
|
NORMAL
Normal defect severity.
|
UNKNOWN
Fallback when enumeration value is unknown.
|
UNREGULATED
Severity level for Unregulated Defects (vehicle or trailer is safe to operate).
|
| Modifier and Type | Method and Description |
|---|---|
static DefectSeverity |
findOrDefault(String value) |
int |
getCode() |
String |
getName() |
static DefectSeverity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefectSeverity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefectSeverity UNKNOWN
public static final DefectSeverity UNREGULATED
public static final DefectSeverity NORMAL
public static final DefectSeverity CRITICAL
public static DefectSeverity[] values()
for (DefectSeverity c : DefectSeverity.values()) System.out.println(c);
public static DefectSeverity 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 getCode()
public static DefectSeverity findOrDefault(String value)
Copyright © 2023. All rights reserved.