Enum Class ChangeType

java.lang.Object
java.lang.Enum<ChangeType>
com.atlassian.bitbucket.content.ChangeType
All Implemented Interfaces:
Serializable, Comparable<ChangeType>, Constable

public enum ChangeType extends Enum<ChangeType>
Defines the standard change types which may occur in a given commit.
  • Enum Constant Details

    • ADD

      public static final ChangeType ADD
      A new file was added.
    • COPY

      public static final ChangeType COPY
      An existing file was copied to create a new file.
    • DELETE

      public static final ChangeType DELETE
      An existing file was deleted.
    • MODIFY

      public static final ChangeType MODIFY
      An existing file was modified.
    • MOVE

      public static final ChangeType MOVE
      An existing file was moved to a new path.

      Note: Renaming a file moves it from an old name to a new one, which also changes its path. As such, a move may affect a file's name, directory or both.

    • UNKNOWN

      public static final ChangeType UNKNOWN
      An SCM-specific change has occurred for which there is no known generic alias.
  • Method Details

    • values

      public static ChangeType[] 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 ChangeType 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