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
AbstractDiffCommandParameters(int maxLineLength, int maxLines, int contextLines, DiffWhitespace whitespace, Set<String> paths)
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

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

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