Package com.atlassian.bitbucket.compare
Class CompareRef
java.lang.Object
com.atlassian.bitbucket.compare.CompareRef
A ref or commit to compare.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCompareRef
(PullRequestRef ref) Convenience constructor for creating aCompareRef
from aPullRequestRef
.CompareRef
(String id, Repository repository) -
Method Summary
-
Constructor Details
-
CompareRef
-
CompareRef
Convenience constructor for creating aCompareRef
from aPullRequestRef
.- Parameters:
ref
- the pull request ref to create a compare ref from
-
-
Method Details
-
getId
- Returns:
- a ref name or a commit ID
-
getRepository
- Returns:
- the repository containing the ref or commit
-