Enum Class GitDiffTarget

java.lang.Object
java.lang.Enum<GitDiffTarget>
com.atlassian.bitbucket.scm.git.command.diff.GitDiffTarget
All Implemented Interfaces:
Serializable, Comparable<GitDiffTarget>, Constable

public enum GitDiffTarget extends Enum<GitDiffTarget>
Possible targets for diff-related data.
  • Enum Constant Details

    • DESTINATION

      public static final GitDiffTarget DESTINATION
      Indicates the data relates to the destination side of the diff.
    • NONE

      public static final GitDiffTarget NONE
      Indicates the data does not relate to a specific target, or contains information relevant to both targets.
    • SOURCE

      public static final GitDiffTarget SOURCE
      Indicates the data relates to the source side of the diff.
  • Method Details

    • values

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