public class

AbstractDiffCommandParameters

extends AbstractCommandParameters
java.lang.Object
   ↳ com.atlassian.bitbucket.util.BuilderSupport
     ↳ com.atlassian.bitbucket.scm.AbstractCommandParameters
       ↳ com.atlassian.bitbucket.scm.AbstractDiffCommandParameters
Known Direct Subclasses

Summary

Nested Classes
class AbstractDiffCommandParameters.AbstractBuilder<B extends AbstractBuilder<B>>  
Constants
int DEFAULT_CONTEXT_LINES
[Expand]
Inherited Fields
From class com.atlassian.bitbucket.util.BuilderSupport
Public Constructors
@Deprecated AbstractDiffCommandParameters(int maxLineLength, int maxLines, int contextLines, DiffWhitespace whitespace, Set<String> paths)
This constructor is deprecated. in 5.4 for removal in 6.0. Use AbstractDiffCommandParameters(AbstractBuilder) instead.
Protected Constructors
AbstractDiffCommandParameters(AbstractBuilder<?> builder)
Public Methods
int getContextLines()
int getMaxLineLength()
int getMaxLines()
@Nonnull Set<String> getPaths()
@Nonnull DiffWhitespace getWhitespace()
boolean hasContextLines()
boolean hasPaths()
Protected Methods
@Nonnull DiffContext toContext(DiffContext.Builder builder)
Appends common attributes to the provided DiffContext.Builder before building it and returning the final DiffContext.
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.util.BuilderSupport
From class java.lang.Object

Constants

public static final int DEFAULT_CONTEXT_LINES

Constant Value: -1 (0xffffffff)

Public Constructors

@Deprecated public AbstractDiffCommandParameters (int maxLineLength, int maxLines, int contextLines, DiffWhitespace whitespace, Set<String> paths)

This constructor is deprecated.
in 5.4 for removal in 6.0. Use AbstractDiffCommandParameters(AbstractBuilder) instead.

Parameters
maxLineLength the maximum length for any diff line
maxLines the maximum number of diff lines to stream
contextLines the number of context (unmodified) lines to include around changed (added/removed) lines
whitespace controls how whitespace changes affect the diff
paths a set containing zero or more paths to include changes for

Protected Constructors

protected AbstractDiffCommandParameters (AbstractBuilder<?> builder)

Parameters
builder a builder containing the assembled parameters

Public Methods

public int getContextLines ()

public int getMaxLineLength ()

public int getMaxLines ()

@Nonnull public Set<String> getPaths ()

@Nonnull public DiffWhitespace getWhitespace ()

Returns
  • optional flag to potentially ignore whitespace

public boolean hasContextLines ()

public boolean hasPaths ()

Protected Methods

@Nonnull protected DiffContext toContext (DiffContext.Builder builder)

Appends common attributes to the provided DiffContext.Builder before building it and returning the final DiffContext.

Parameters
builder the starting builder to apply common attributes to before building
Returns