protected static abstract class

AbstractDiffRequest.AbstractBuilder

extends BuilderSupport
java.lang.Object
   ↳ com.atlassian.bitbucket.util.BuilderSupport
     ↳ com.atlassian.bitbucket.content.AbstractDiffRequest.AbstractBuilder<B extends com.atlassian.bitbucket.content.AbstractDiffRequest.AbstractBuilder<B, R>, R>
Known Direct Subclasses

Summary

[Expand]
Inherited Fields
From class com.atlassian.bitbucket.util.BuilderSupport
Protected Constructors
AbstractBuilder()
AbstractBuilder(AbstractDiffRequest request)
Public Methods
@Nonnull abstract R build()
@Nonnull B contextLines(int value)
Specifies the number of context lines to include around added/removed lines.
@Nonnull B filter(DiffContentFilter value)
@Nonnull B path(String value)
@Nonnull B paths(Iterable<String> values)
@Nonnull B paths(String value, String... values)
@Nonnull B whitespace(DiffWhitespace value)
Protected Methods
@Nonnull abstract B self()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.util.BuilderSupport
From class java.lang.Object

Protected Constructors

protected AbstractBuilder ()

protected AbstractBuilder (AbstractDiffRequest request)

Public Methods

@Nonnull public abstract R build ()

@Nonnull public B contextLines (int value)

Specifies the number of context lines to include around added/removed lines. 0 and positive values are treated as the number of lines to request. Any negative value is treated as a request for the system-configured default number of lines.

When requesting the default number of context lines, it is encouraged to use DEFAULT_CONTEXT_LINES for clarity: contextLines(DiffRequest.DEFAULT_CONTEXT_LINES).

Parameters
value the number of context lines to include around added and removed lines in the diff, which may be DEFAULT_CONTEXT_LINES to use the default number
Returns
  • this

@Nonnull public B filter (DiffContentFilter value)

@Nonnull public B path (String value)

@Nonnull public B paths (Iterable<String> values)

@Nonnull public B paths (String value, String... values)

@Nonnull public B whitespace (DiffWhitespace value)

Protected Methods

@Nonnull protected abstract B self ()