protected abstract static class AbstractDiffRequest.AbstractBuilder<B extends AbstractDiffRequest.AbstractBuilder<B,R>,R> extends BuilderSupport
NOT_BLANK
Modifier | Constructor and Description |
---|---|
protected |
AbstractBuilder() |
protected |
AbstractBuilder(AbstractDiffRequest request) |
Modifier and Type | Method and Description |
---|---|
abstract R |
build() |
B |
contextLines(int value)
Specifies the number of context lines to include around added/removed lines.
|
B |
filter(DiffContentFilter value) |
B |
path(String value) |
B |
paths(Iterable<String> values) |
B |
paths(String value,
String... values) |
protected abstract B |
self() |
B |
whitespace(DiffWhitespace value) |
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
protected AbstractBuilder()
protected AbstractBuilder(@Nonnull AbstractDiffRequest request)
@Nonnull public B contextLines(int value)
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)
.
value
- the number of context lines to include around added and removed lines in the diff, which may
be AbstractDiffRequest.DEFAULT_CONTEXT_LINES
to use the default numberthis
@Nonnull public B filter(@Nullable DiffContentFilter value)
@Nonnull public B whitespace(@Nonnull DiffWhitespace value)
Copyright © 2024 Atlassian. All rights reserved.