Enum Class ChangeStatus

java.lang.Object
java.lang.Enum<ChangeStatus>
com.google.gerrit.extensions.client.ChangeStatus
All Implemented Interfaces:
Serializable, Comparable<ChangeStatus>, java.lang.constant.Constable

public enum ChangeStatus extends Enum<ChangeStatus>
  • Enum Constant Details

    • NEW

      public static final ChangeStatus 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 - when the Submit Patch Set action is used;
      • ABANDONED - when the Abandon action is used.
    • MERGED

      public static final ChangeStatus 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 set. Draft comments however may be published, supporting a post-submit review.

    • ABANDONED

      public static final ChangeStatus 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.

      Changes in the ABANDONED state can be moved to:

      • NEW - when the Restore action is used.
  • Method Details

    • values

      public static ChangeStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ChangeStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()