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
Nested ClassesModifier and TypeClassDescriptionstatic classAbstractChangesCommandParameters.AbstractBuilder<B extends AbstractChangesCommandParameters.AbstractBuilder<B>> -
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionintgetPaths()booleanhasPaths()protected ChangeContexttoContext(ChangeContext.Builder builder) Appends common attributes to the providedChangeContext.Builderbefore 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.Builderbefore building it and returning the finalChangeContext.- Parameters:
builder- the starting builder to apply common attributes to before building- Returns:
- the
ChangeContextfrom the provided builder
-