Enum Change.Status
- java.lang.Object
-
- java.lang.Enum<Change.Status>
-
- com.google.gerrit.entities.Change.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<Change.Status>
- Enclosing class:
- Change
public static enum Change.Status extends Enum<Change.Status>
Current state within the basic workflow of the change.Within the database, lower case codes ('a'..'z') indicate a change that is still open, and that can be modified/refined further, while upper case codes ('A'..'Z') indicate a change that is closed and cannot be further modified.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeStatus
asChangeStatus()
static Change.Status
forChangeStatus(ChangeStatus cs)
static Change.Status
forCode(char c)
char
getCode()
boolean
isClosed()
boolean
isOpen()
static Change.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static Change.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final Change.Status NEW
Change is open and pending review, or review is in progress.This is the default state assigned to a change when it is first created in the database. A change stays in the NEW state throughout its review cycle, until the change is submitted or abandoned.
Changes in the NEW state can be moved to:
-
MERGED
public static final Change.Status MERGED
Change is closed, and submitted to its destination branch.Once a change has been merged, it cannot be further modified by adding a replacement patch
-
ABANDONED
public static final Change.Status ABANDONED
Change is closed, but was not submitted to its destination branch.Once a change has been abandoned, it cannot be further modified by adding a replacement patch set, and it cannot be merged. Draft comments however may be published, permitting reviewers to send constructive feedback.
-
-
Method Detail
-
values
public static Change.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 (Change.Status c : Change.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 Change.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
-
getCode
public char getCode()
-
isOpen
public boolean isOpen()
-
isClosed
public boolean isClosed()
-
asChangeStatus
public ChangeStatus asChangeStatus()
-
forCode
public static Change.Status forCode(char c)
-
forChangeStatus
public static Change.Status forChangeStatus(ChangeStatus cs)
-
-