Package com.google.gerrit.common.data
Enum SubmitRecord.Status
- java.lang.Object
-
- java.lang.Enum<SubmitRecord.Status>
-
- com.google.gerrit.common.data.SubmitRecord.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<SubmitRecord.Status>
- Enclosing class:
- SubmitRecord
public static enum SubmitRecord.Status extends Enum<SubmitRecord.Status>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSED
The change has been closed.FORCED
The change was submitted bypassing submit rules.NOT_READY
Something is preventing this change from being submitted.OK
The change is ready for submission.RULE_ERROR
An internal server error occurred preventing computation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SubmitRecord.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static SubmitRecord.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final SubmitRecord.Status OK
The change is ready for submission.
-
NOT_READY
public static final SubmitRecord.Status NOT_READY
Something is preventing this change from being submitted.
-
CLOSED
public static final SubmitRecord.Status CLOSED
The change has been closed.
-
FORCED
public static final SubmitRecord.Status FORCED
The change was submitted bypassing submit rules.
-
RULE_ERROR
public static final SubmitRecord.Status RULE_ERROR
An internal server error occurred preventing computation.Additional detail may be available in
SubmitRecord.errorMessage
.
-
-
Method Detail
-
values
public static SubmitRecord.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SubmitRecord.Status c : SubmitRecord.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubmitRecord.Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-