Package com.atlassian.bitbucket.content
Class ChangeSummary.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.util.AbstractSummary.AbstractBuilder<ChangeSummary.Builder,ChangeSummary>
com.atlassian.bitbucket.content.ChangeSummary.Builder
- Enclosing class:
- ChangeSummary
public static class ChangeSummary.Builder
extends AbstractSummary.AbstractBuilder<ChangeSummary.Builder,ChangeSummary>
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK -
Constructor Summary
ConstructorsConstructorDescriptionBuilder(CommandResult result) Creates a new builder with the providedresult.Builder(AbstractSummary summary) Creates and initializes a new builder using details from the providedsummary. -
Method Summary
Modifier and TypeMethodDescriptionbuild()protected ChangeSummary.Builderself()truncated(boolean value) Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
Creates and initializes a new builder using details from the providedsummary. If the provided summary is aChangeSummary, those details will also be copied over.- Parameters:
summary- the summary to initialize this builder from
-
Builder
Creates a new builder with the providedresult.- Parameters:
result- the operation result for the summary
-
-
Method Details
-
build
- Specified by:
buildin classAbstractSummary.AbstractBuilder<ChangeSummary.Builder,ChangeSummary>
-
truncated
-
self
- Specified by:
selfin classAbstractSummary.AbstractBuilder<ChangeSummary.Builder,ChangeSummary>
-