Enum Class PullRequestDirection

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

public enum PullRequestDirection extends Enum<PullRequestDirection>
Specified the direction of a pull request relative to a subject repository and branch.
  • Enum Constant Details

    • OUTGOING

      public static final PullRequestDirection OUTGOING
      OUTGOING indicates the pull request is coming from the repository and branch in question.
    • INCOMING

      public static final PullRequestDirection INCOMING
      INCOMING indicates the pull request is going to the repository and branch in question.
  • Method Details

    • values

      public static PullRequestDirection[] 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 PullRequestDirection 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
    • opposite

      public PullRequestDirection opposite()
      Returns:
      the opposite direction to the current direction