Package com.atlassian.bitbucket.content
Class AbstractDiffRequest.AbstractBuilder<B extends AbstractDiffRequest.AbstractBuilder<B,R>,R>
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.content.AbstractDiffRequest.AbstractBuilder<B,R>
- Direct Known Subclasses:
CompareDiffRequest.Builder
,DiffRequest.Builder
- Enclosing class:
- AbstractDiffRequest
protected abstract static class AbstractDiffRequest.AbstractBuilder<B extends AbstractDiffRequest.AbstractBuilder<B,R>,R>
extends BuilderSupport
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract R
build()
contextLines
(int value) Specifies the number of context lines to include around added/removed lines.filter
(DiffContentFilter value) protected abstract B
self()
whitespace
(DiffWhitespace value) Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder() -
AbstractBuilder
-
-
Method Details
-
build
-
contextLines
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
AbstractDiffRequest.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 beAbstractDiffRequest.DEFAULT_CONTEXT_LINES
to use the default number- Returns:
this
-
filter
-
path
-
paths
-
paths
-
whitespace
-
self
-