protected static abstract class


extends BuilderSupport
   ↳ com.atlassian.stash.util.BuilderSupport
     ↳ com.atlassian.stash.content.AbstractDiffRequest.AbstractBuilder<B extends com.atlassian.stash.content.AbstractDiffRequest.AbstractBuilder<B, R>, R>
Known Direct Subclasses


Inherited Fields
From class com.atlassian.stash.util.BuilderSupport
Protected Constructors
AbstractDiffRequest.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(String value, String... values)
@Nonnull B paths(Iterable<String> values)
@Nonnull B whitespace(DiffWhitespace value)
Protected Methods
@Nonnull abstract B self()
Inherited Methods
From class com.atlassian.stash.util.BuilderSupport
From class java.lang.Object

Protected Constructors

protected AbstractDiffRequest.AbstractBuilder ()

protected AbstractDiffRequest.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 (String value, String... values)

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

@Nonnull public B whitespace (DiffWhitespace value)

Protected Methods

@Nonnull protected abstract B self ()