public class AbstractDiffCommandParameters extends AbstractCommandParameters
Modifier and Type | Class and Description |
---|---|
static class |
AbstractDiffCommandParameters.AbstractBuilder<B extends AbstractDiffCommandParameters.AbstractBuilder<B>> |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CONTEXT_LINES |
NOT_BLANK
Modifier | Constructor and Description |
---|---|
protected |
AbstractDiffCommandParameters(AbstractDiffCommandParameters.AbstractBuilder<?> builder) |
Modifier and Type | Method and Description |
---|---|
int |
getContextLines() |
int |
getMaxLineLength() |
int |
getMaxLines() |
Set<String> |
getPaths() |
Repository |
getSecondaryRepository()
Retrieves the secondary repository from which to generate the diff.
|
DiffWhitespace |
getWhitespace() |
boolean |
hasContextLines() |
boolean |
hasPaths() |
protected DiffContext |
toContext(DiffContext.Builder builder)
Appends common attributes to the provided
DiffContext.Builder before building
it and returning the final DiffContext . |
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
public static final int DEFAULT_CONTEXT_LINES
protected AbstractDiffCommandParameters(AbstractDiffCommandParameters.AbstractBuilder<?> builder)
builder
- a builder containing the assembled parameterspublic int getContextLines()
public int getMaxLineLength()
public int getMaxLines()
@Nullable public Repository getSecondaryRepository()
public boolean hasContextLines()
public boolean hasPaths()
@Nonnull public DiffWhitespace getWhitespace()
@Nonnull protected DiffContext toContext(@Nonnull DiffContext.Builder builder)
DiffContext.Builder
before building
it and returning the final DiffContext
.builder
- the starting builder to apply common attributes to before buildingDiffContext
from the provided builderCopyright © 2019 Atlassian. All rights reserved.