protected static abstract class


extends BuilderSupport
   ↳ 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


Inherited Fields
From class com.atlassian.bitbucket.util.BuilderSupport
Protected Constructors
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()
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).

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
  • 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 ()