Enum ChangeKind
- java.lang.Object
-
- java.lang.Enum<ChangeKind>
-
- com.google.gerrit.extensions.client.ChangeKind
-
- All Implemented Interfaces:
Serializable
,Comparable<ChangeKind>
public enum ChangeKind extends Enum<ChangeKind>
Operation performed by a change relative to its parent.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MERGE_FIRST_PARENT_UPDATE
Conflict-free change of first (left) parent of a merge commit.NO_CHANGE
Same tree, parent tree, same commit message.NO_CODE_CHANGE
Same tree and same parent tree.REWORK
Nontrivial content changes.TRIVIAL_REBASE
Conflict-free merge between the new parent and the prior patch set.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChangeKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static ChangeKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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.
-
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 Detail
-
values
public static ChangeKind[] 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 (ChangeKind c : ChangeKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChangeKind 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
-
-