Enum Class ChangeKind

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

public enum ChangeKind extends Enum<ChangeKind>
Operation performed by a change relative to its parent.
  • Enum Constant Details

    • REWORK

      public static final ChangeKind REWORK
      Nontrivial content changes.
    • TRIVIAL_REBASE

      public static final ChangeKind TRIVIAL_REBASE
      Conflict-free merge between the new parent and the prior patch set.
    • TRIVIAL_REBASE_WITH_MESSAGE_UPDATE

      public static final ChangeKind TRIVIAL_REBASE_WITH_MESSAGE_UPDATE
      Conflict-free merge between the new parent and the prior patch set, accompanied with a change to commit message.
    • MERGE_FIRST_PARENT_UPDATE

      public static final ChangeKind MERGE_FIRST_PARENT_UPDATE
      Conflict-free change of first (left) parent of a merge commit.
    • NO_CODE_CHANGE

      public static final ChangeKind NO_CODE_CHANGE
      Same tree and same parent tree.
    • NO_CHANGE

      public static final ChangeKind NO_CHANGE
      Same tree, parent tree, same commit message.
  • Method Details

    • values

      public static ChangeKind[] 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 ChangeKind 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
    • matches

      public boolean matches(ChangeKind changeKind, boolean isMerge)
    • isNoCodeChange

      public boolean isNoCodeChange()
    • isTrivialRebase

      public boolean isTrivialRebase()
    • isTrivialRebaseWithMessageUpdate

      public boolean isTrivialRebaseWithMessageUpdate()
    • isMergeFirstParentUpdate

      public boolean isMergeFirstParentUpdate(boolean isMerge)