public class

CompareRef

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

Class Overview

A ref or commit to compare.

Summary

Public Constructors
CompareRef(String id, Repository repository)
CompareRef(PullRequestRef ref)
Convenience constructor for creating a CompareRef from a PullRequestRef.
Public Methods
@Nonnull String getId()
@Nonnull Repository getRepository()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CompareRef (String id, Repository repository)

public CompareRef (PullRequestRef ref)

Convenience constructor for creating a CompareRef from a PullRequestRef.

Parameters
ref the pull request ref to create a compare ref from

Public Methods

@Nonnull public String getId ()

Returns
  • a ref name or a commit ID

@Nonnull public Repository getRepository ()

Returns
  • the repository containing the ref or commit