public static final class

SimpleCommit.Builder

extends SimplePropertySupport.AbstractPropertyBuilder<B extends AbstractPropertyBuilder<B>>
java.lang.Object
   ↳ com.atlassian.bitbucket.util.BuilderSupport
     ↳ com.atlassian.bitbucket.property.SimplePropertySupport.AbstractPropertyBuilder<B extends com.atlassian.bitbucket.property.SimplePropertySupport.AbstractPropertyBuilder<B>>
       ↳ com.atlassian.bitbucket.commit.SimpleCommit.Builder

Summary

[Expand]
Inherited Fields
From class com.atlassian.bitbucket.property.SimplePropertySupport.AbstractPropertyBuilder
From class com.atlassian.bitbucket.util.BuilderSupport
Public Constructors
Builder(String id)
Builder(Commit commit)
Public Methods
@Nonnull SimpleCommit.Builder author(Person value)
Sets the author.
@Nonnull SimpleCommit.Builder authorTimestamp(Date value)
@Nonnull SimpleCommit build()
@Nonnull SimpleCommit.Builder clearParents()
@Nonnull SimpleCommit.Builder committer(Person value)
Sets the committer.
@Nonnull SimpleCommit.Builder committerTimestamp(Date value)
@Nonnull SimpleCommit.Builder displayId(String value)
@Nonnull SimpleCommit.Builder message(String value)
@Nonnull SimpleCommit.Builder parent(MinimalCommit value)
@Nonnull SimpleCommit.Builder parents(MinimalCommit value, MinimalCommit... values)
@Nonnull SimpleCommit.Builder parents(Iterable<MinimalCommit> values)
@Nonnull SimpleCommit.Builder repository(Repository value)
Protected Methods
@Nonnull SimpleCommit.Builder self()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.property.SimplePropertySupport.AbstractPropertyBuilder
From class com.atlassian.bitbucket.util.BuilderSupport
From class java.lang.Object

Public Constructors

public Builder (String id)

public Builder (Commit commit)

Public Methods

@Nonnull public SimpleCommit.Builder author (Person value)

Sets the author. If the committer has not been set, the provided person will also be set as the committer.

Parameters
value the author to associate with the commit
Returns
  • this

@Nonnull public SimpleCommit.Builder authorTimestamp (Date value)

Sets the 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.

Parameters
value the author timestamp to associate with the commit, or null to use the current date
Returns
  • this

@Nonnull public SimpleCommit build ()

@Nonnull public SimpleCommit.Builder clearParents ()

@Nonnull public SimpleCommit.Builder committer (Person value)

Sets the committer. If the author has not been set, the provided person will also be set as the author.

Parameters
value the committer to associate with the commit
Returns
  • this

@Nonnull public SimpleCommit.Builder committerTimestamp (Date value)

Sets the 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.

Parameters
value the committer timestamp to associate with the commit, or null to use the current date
Returns
  • this

@Nonnull public SimpleCommit.Builder displayId (String value)

@Nonnull public SimpleCommit.Builder message (String value)

@Nonnull public SimpleCommit.Builder parent (MinimalCommit value)

@Nonnull public SimpleCommit.Builder parents (MinimalCommit value, MinimalCommit... values)

@Nonnull public SimpleCommit.Builder parents (Iterable<MinimalCommit> values)

@Nonnull public SimpleCommit.Builder repository (Repository value)

Protected Methods

@Nonnull protected SimpleCommit.Builder self ()