Package com.atlassian.bitbucket.scm
Class AbstractChangesCommandParameters
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.scm.AbstractCommandParameters
com.atlassian.bitbucket.scm.AbstractChangesCommandParameters
- Direct Known Subclasses:
ChangesCommandParameters
,CompareChangeCommandParameters
,PullRequestChangesCommandParameters
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AbstractChangesCommandParameters.AbstractBuilder<B extends AbstractChangesCommandParameters.AbstractBuilder<B>>
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionint
getPaths()
boolean
hasPaths()
protected ChangeContext
toContext
(ChangeContext.Builder builder) Appends common attributes to the providedChangeContext.Builder
before building it and returning the finalChangeContext
.Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
AbstractChangesCommandParameters
protected AbstractChangesCommandParameters(AbstractChangesCommandParameters.AbstractBuilder<?> builder) - Parameters:
builder
- a builder containing the assembled parameters- Since:
- 5.4
-
-
Method Details
-
getMaxChanges
public int getMaxChanges() -
getPaths
-
hasPaths
public boolean hasPaths() -
toContext
Appends common attributes to the providedChangeContext.Builder
before building it and returning the finalChangeContext
.- Parameters:
builder
- the starting builder to apply common attributes to before building- Returns:
- the
ChangeContext
from the provided builder
-