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
properties
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Constructor Summary
-
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.Builder
self()
Methods inherited from class com.atlassian.bitbucket.property.SimplePropertySupport.AbstractPropertyBuilder
properties, property
Methods 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 thecommitter
has not been set, the providedperson
will also be set as the committer.- Parameters:
value
- the author to associate with the commit- Returns:
this
-
authorTimestamp
Sets theauthor timestamp
. If the providedDate
isnull
, the current date is used. If thecommitter timestamp
has 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, ornull
to use the current date- Returns:
this
-
build
-
clearParents
-
committer
Sets thecommitter
. If theauthor
has not been set, the providedperson
will 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 providedDate
isnull
, the current date is used. If theauthor timestamp
has 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, ornull
to 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:
self
in classSimplePropertySupport.AbstractPropertyBuilder<SimpleCommit.Builder>
-