|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectbr.com.objectos.git.MutableCommit
public final class MutableCommit
A class for creating a commit object suitable for writing to a repository.
| Constructor Summary | |
|---|---|
MutableCommit()
Creates a new empty mutable commit instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MutableCommit()
| Method Detail |
|---|
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 commitpublic final String toString()
ToStringObject.formatToString(StringBuilder, int) method.
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||