br.com.objectos.git
public final class MutableCommit extends Object implements br.com.objectos.core.object.ToStringObject
| Constructor and Description |
|---|
MutableCommit()
Creates a new empty mutable commit instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParent(ObjectId parent)
Adds the specified object ID as a parent of this commit.
|
void |
clear()
Sets this commit to the same state as if it was just instantiated.
|
void |
formatToString(StringBuilder toString,
int level) |
void |
setAuthor(Identification author)
Sets the author of this commit to the specified value.
|
void |
setCommitter(Identification committer)
Sets the committer of this commit to the specified value.
|
void |
setMessage(String message)
Sets the message of this commit to the specified value.
|
void |
setTree(ObjectId tree)
Sets the tree of this commit to the specified value.
|
String |
toString()
Returns the string representation of this commit as defined by the
ToStringObject.formatToString(StringBuilder, int) method. |
public MutableCommit()
public final void addParent(ObjectId parent)
parent - the additional parent of this commitpublic final void clear()
public final void formatToString(StringBuilder toString, int level)
formatToString in interface br.com.objectos.core.object.ToStringObjectpublic final void setAuthor(Identification author)
author - the value to set as the author of this commitpublic final void setCommitter(Identification committer)
committer - the value to set as the committer of this commitpublic final void setMessage(String message)
message - the value to set as the message of this commitpublic final void setTree(ObjectId tree)
tree - the value to set as the tree of this commitCopyright © 2020–2022 Objectos Software LTDA. All rights reserved.