public enum ChangeStatus extends java.lang.Enum<ChangeStatus>
Enum Constant and Description |
---|
ABANDONED
Change is closed, but was not submitted to its destination branch.
|
MERGED
Change is closed, and submitted to its destination branch.
|
NEW
Change is open and pending review, or review is in progress.
|
Modifier and Type | Method and Description |
---|---|
static ChangeStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChangeStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChangeStatus NEW
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:
public static final ChangeStatus MERGED
Once a change has been merged, it cannot be further modified by adding a replacement patch set. Draft comments however may be published, supporting a post-submit review.
public static final ChangeStatus ABANDONED
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.
Changes in the ABANDONED state can be moved to:
NEW
- when the Restore action is used.
public static ChangeStatus[] values()
for (ChangeStatus c : ChangeStatus.values()) System.out.println(c);
public static ChangeStatus 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 null