Package com.atlassian.bitbucket.commit
Class SimpleCommit.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.property.SimplePropertySupport.AbstractPropertyBuilder<SimpleCommit.Builder>
com.atlassian.bitbucket.commit.SimpleCommit.Builder
- Enclosing class:
- SimpleCommit
public static final class SimpleCommit.Builder
extends SimplePropertySupport.AbstractPropertyBuilder<SimpleCommit.Builder>
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.property.SimplePropertySupport.AbstractPropertyBuilder
propertiesFields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets theauthor.authorTimestamp(Date value) Sets theauthor timestamp.build()Sets thecommitter.committerTimestamp(Date value) Sets thecommitter timestamp.parent(MinimalCommit value) parents(MinimalCommit value, MinimalCommit... values) parents(Iterable<MinimalCommit> values) repository(Repository value) protected SimpleCommit.Builderself()Methods inherited from class com.atlassian.bitbucket.property.SimplePropertySupport.AbstractPropertyBuilder
properties, propertyMethods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
author
Sets theauthor. If thecommitterhas not been set, the providedpersonwill also be set as the committer.- Parameters:
value- the author to associate with the commit- Returns:
this
-
authorTimestamp
Sets theauthor timestamp. If the providedDateisnull, the current date is used. If thecommitter timestamphas not been set, the provided date (or the current date) will also be set as the committer timestamp.- Parameters:
value- the author timestamp to associate with the commit, ornullto use the current date- Returns:
this
-
build
-
clearParents
-
committer
Sets thecommitter. If theauthorhas not been set, the providedpersonwill also be set as the author.- Parameters:
value- the committer to associate with the commit- Returns:
this- Since:
- 5.0
-
committerTimestamp
Sets thecommitter timestamp. If the providedDateisnull, the current date is used. If theauthor timestamphas not been set, the provided date (or the current date) will also be set as the author timestamp.- Parameters:
value- the committer timestamp to associate with the commit, ornullto use the current date- Returns:
this- Since:
- 5.0
-
displayId
-
message
-
parent
-
parents
@Nonnull public SimpleCommit.Builder parents(@Nullable MinimalCommit value, @Nullable MinimalCommit... values) -
parents
-
repository
-
self
- Specified by:
selfin classSimplePropertySupport.AbstractPropertyBuilder<SimpleCommit.Builder>
-