public static class

CompareRequest.Builder

extends Object
java.lang.Object
   ↳ com.atlassian.bitbucket.compare.CompareRequest.Builder

Summary

Public Constructors
Builder()
Builder(CompareDiffRequest request)
Builder(PullRequest pullRequest)
Convenience constructor for creating a Builder using the refs from a provided PullRequest.
Public Methods
@Nonnull CompareRequest build()
@Nonnull CompareRequest.Builder fromRef(CompareRef fromRef)
@Nonnull CompareRequest.Builder fromRef(String id, Repository repository)
@Nonnull CompareRequest.Builder toRef(String id, Repository repository)
@Nonnull CompareRequest.Builder toRef(CompareRef toRef)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

public Builder (CompareDiffRequest request)

public Builder (PullRequest pullRequest)

Convenience constructor for creating a Builder using the refs from a provided PullRequest.

Parameters
pullRequest the pull request to build a CompareRequest from

Public Methods

@Nonnull public CompareRequest build ()

@Nonnull public CompareRequest.Builder fromRef (CompareRef fromRef)

@Nonnull public CompareRequest.Builder fromRef (String id, Repository repository)

@Nonnull public CompareRequest.Builder toRef (String id, Repository repository)

@Nonnull public CompareRequest.Builder toRef (CompareRef toRef)