Package com.atlassian.bitbucket.scm
Class AbstractDiffCommandParameters
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.scm.AbstractCommandParameters
com.atlassian.bitbucket.scm.AbstractDiffCommandParameters
- Direct Known Subclasses:
- CompareDiffCommandParameters,- DiffCommandParameters,- PullRequestDiffCommandParameters
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classAbstractDiffCommandParameters.AbstractBuilder<B extends AbstractDiffCommandParameters.AbstractBuilder<B>>
- 
Field SummaryFieldsFields inherited from class com.atlassian.bitbucket.util.BuilderSupportNOT_BLANK
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotected
- 
Method SummaryModifier and TypeMethodDescriptionintintintgetPaths()Retrieves the secondary repository from which to generate the diff.booleanbooleanhasPaths()protected DiffContexttoContext(DiffContext.Builder builder) Appends common attributes to the providedDiffContext.Builderbefore building it and returning the finalDiffContext.Methods inherited from class com.atlassian.bitbucket.util.BuilderSupportaddIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
- 
Field Details- 
DEFAULT_CONTEXT_LINESpublic static final int DEFAULT_CONTEXT_LINES- See Also:
 
 
- 
- 
Constructor Details- 
AbstractDiffCommandParameters- Parameters:
- builder- a builder containing the assembled parameters
- Since:
- 5.4
 
 
- 
- 
Method Details- 
getContextLinespublic int getContextLines()
- 
getMaxLineLengthpublic int getMaxLineLength()
- 
getMaxLinespublic int getMaxLines()
- 
getPaths
- 
getSecondaryRepositoryRetrieves the secondary repository from which to generate the diff. Commits in this repository may only be identified by hash. Any branch or tag names used will always be resolved using the primary repository.- Returns:
- a secondary repository from which to generate the diff
- Since:
- 6.7
 
- 
hasContextLinespublic boolean hasContextLines()
- 
hasPathspublic boolean hasPaths()
- 
getWhitespace- Returns:
- optional flag to potentially ignore whitespace
 
- 
toContextAppends common attributes to the providedDiffContext.Builderbefore building it and returning the finalDiffContext.- Parameters:
- builder- the starting builder to apply common attributes to before building
- Returns:
- the DiffContextfrom the provided builder
 
 
-