public static enum InspectionReport.Decision extends java.lang.Enum<InspectionReport.Decision>
Enum Constant and Description |
---|
ACCEPT
Subject passed the inspection and is allowed to proceed.
|
REJECT
Subject failed the inspection and is not allowed to proceed.
|
Modifier and Type | Method and Description |
---|---|
static InspectionReport.Decision |
flip(InspectionReport.Decision decision)
Invert the decision.
|
static InspectionReport.Decision |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InspectionReport.Decision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InspectionReport.Decision ACCEPT
public static final InspectionReport.Decision REJECT
public static InspectionReport.Decision[] values()
for (InspectionReport.Decision c : InspectionReport.Decision.values()) System.out.println(c);
public static InspectionReport.Decision valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static InspectionReport.Decision flip(InspectionReport.Decision decision)
decision
- The decision to flip