public static abstract class

MergeCommandParameters.AbstractMergeBuilder

extends AbstractMergeCommandParameters.AbstractBuilder<B extends AbstractBuilder<B>>
java.lang.Object
   ↳ com.atlassian.bitbucket.scm.AbstractMergeCommandParameters.AbstractBuilder<B extends com.atlassian.bitbucket.scm.AbstractMergeCommandParameters.AbstractBuilder<B>>
     ↳ com.atlassian.bitbucket.scm.MergeCommandParameters.AbstractMergeBuilder<B extends com.atlassian.bitbucket.scm.MergeCommandParameters.AbstractMergeBuilder<B>>
Known Direct Subclasses

Summary

Public Constructors
AbstractMergeBuilder()
Public Methods
@Nonnull B fromBranch(String value)
@Nonnull B fromCommitId(String value)
@Nonnull B fromRepository(Repository value)
Sets the Repository containing the from branch and commit.
@Nonnull B toBranch(String value)
Protected Methods
void validate()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.scm.AbstractMergeCommandParameters.AbstractBuilder
From class java.lang.Object

Public Constructors

public AbstractMergeBuilder ()

Public Methods

@Nonnull public B fromBranch (String value)

@Nonnull public B fromCommitId (String value)

Parameters
value the commit ID to merge, or null to merge the current tip of the branch
Returns
  • this

@Nonnull public B fromRepository (Repository value)

Sets the Repository containing the from branch and commit. This value only needs to be supplied if the from branch/commit are not in the same repository as the target.

Parameters
value the repository containing the from branch and commit, if different from the target
Returns
  • this

@Nonnull public B toBranch (String value)

Protected Methods

protected void validate ()