public static final class SimpleCommit.Builder extends SimplePropertySupport.AbstractPropertyBuilder<SimpleCommit.Builder>
propertiesNOT_BLANK| Constructor and Description |
|---|
Builder(Commit commit) |
Builder(String id) |
| Modifier and Type | Method and Description |
|---|---|
SimpleCommit.Builder |
author(Person value)
Sets the
author. |
SimpleCommit.Builder |
authorTimestamp(Date value)
Sets the
author timestamp. |
SimpleCommit |
build() |
SimpleCommit.Builder |
clearParents() |
SimpleCommit.Builder |
committer(Person value)
Sets the
committer. |
SimpleCommit.Builder |
committerTimestamp(Date value)
Sets the
committer timestamp. |
SimpleCommit.Builder |
displayId(String value) |
SimpleCommit.Builder |
message(String value) |
SimpleCommit.Builder |
parent(MinimalCommit value) |
SimpleCommit.Builder |
parents(Iterable<MinimalCommit> values) |
SimpleCommit.Builder |
parents(MinimalCommit value,
MinimalCommit... values) |
SimpleCommit.Builder |
repository(Repository value) |
protected SimpleCommit.Builder |
self() |
properties, propertyaddIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank@Nonnull public SimpleCommit.Builder author(@Nonnull Person value)
author. If the committer has not been set,
the provided person will also be set as the committer.value - the author to associate with the committhis@Nonnull public SimpleCommit.Builder authorTimestamp(@Nullable Date value)
author timestamp. If the provided Date is null,
the current date is used. If the committer timestamp has not been set, the
provided date (or the current date) will also be set as the committer timestamp.value - the author timestamp to associate with the commit, or null to use the current datethis@Nonnull public SimpleCommit build()
@Nonnull public SimpleCommit.Builder clearParents()
@Nonnull public SimpleCommit.Builder committer(@Nonnull Person value)
committer. If the author has not been set,
the provided person will also be set as the author.value - the committer to associate with the committhis@Nonnull public SimpleCommit.Builder committerTimestamp(@Nullable Date value)
committer timestamp. If the provided Date is
null, the current date is used. If the author timestamp has not
been set, the provided date (or the current date) will also be set as the author timestamp.value - the committer timestamp to associate with the commit, or null to use the current datethis@Nonnull public SimpleCommit.Builder displayId(@Nullable String value)
@Nonnull public SimpleCommit.Builder message(@Nullable String value)
@Nonnull public SimpleCommit.Builder parent(@Nullable MinimalCommit value)
@Nonnull public SimpleCommit.Builder parents(@Nullable MinimalCommit value, @Nullable MinimalCommit... values)
@Nonnull public SimpleCommit.Builder parents(@Nullable Iterable<MinimalCommit> values)
@Nonnull public SimpleCommit.Builder repository(@Nullable Repository value)
@Nonnull protected SimpleCommit.Builder self()
self in class SimplePropertySupport.AbstractPropertyBuilder<SimpleCommit.Builder>Copyright © 2019 Atlassian. All rights reserved.