public abstract class AbstractDiffRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractDiffRequest.AbstractBuilder<B extends AbstractDiffRequest.AbstractBuilder<B,R>,R> |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONTEXT_LINES
Indicates the request should supply the default number of context lines for added and removed lines.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDiffRequest(AbstractDiffRequest.AbstractBuilder<?,?> builder) |
| Modifier and Type | Method and Description |
|---|---|
int |
getContextLines()
Retrieves the numbers of context lines to show around added and removed lines.
|
DiffContentFilter |
getFilter() |
Set<String> |
getPaths() |
DiffWhitespace |
getWhitespace() |
boolean |
hasContextLines()
Retrieves a flag indicating whether an explicit number of context lines has been requested.
|
public static final int DEFAULT_CONTEXT_LINES
protected AbstractDiffRequest(AbstractDiffRequest.AbstractBuilder<?,?> builder)
public int getContextLines()
0 context
will be omitted and only added and removed lines will be shown. For positive values, that number of lines will
be shown. For negative values, the system-configured default number will be shown.@Nullable public DiffContentFilter getFilter()
@Nonnull public Set<String> getPaths()
@Nonnull public DiffWhitespace getWhitespace()
public boolean hasContextLines()
true, getContextLines() will return a value greater than or equal to 0, When
it returns false, getContextLines() will return DEFAULT_CONTEXT_LINES.true if a non-default number of context lines has been requested;
otherwise, false to use the default number of linesCopyright © 2019 Atlassian. All rights reserved.