Class CompareRef

java.lang.Object
com.atlassian.bitbucket.compare.CompareRef

public class CompareRef extends Object
A ref or commit to compare.
See Also:
  • Constructor Details

    • CompareRef

      public CompareRef(@Nonnull String id, @Nonnull Repository repository)
    • CompareRef

      public CompareRef(@Nonnull PullRequestRef ref)
      Convenience constructor for creating a CompareRef from a PullRequestRef.
      Parameters:
      ref - the pull request ref to create a compare ref from
  • Method Details

    • getId

      @Nonnull public String getId()
      Returns:
      a ref name or a commit ID
    • getRepository

      @Nonnull public Repository getRepository()
      Returns:
      the repository containing the ref or commit