br.com.objectos.git
Class Commit

java.lang.Object
  extended by br.com.objectos.git.Commit
All Implemented Interfaces:
br.com.objectos.core.object.ToStringObject

public final class Commit
extends Object

An immutable Git commit object.

Since:
1

Method Summary
 void formatToString(StringBuilder sb, int depth)
           
 Identification getAuthor()
          Returns the author of this commit.
 Identification getCommitter()
          Returns the committer of this commit.
 String getMessage()
          Returns the message of this commit.
 ObjectId getObjectId()
          Returns an object representing the hash value that uniquely identifies this git object.
 br.com.objectos.collections.list.ImmutableList<ObjectId> getParents()
          Returns the identifiers of the parents of this commit.
 ObjectId getTree()
          Returns the identifier of the tree of this commit
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

formatToString

public final void formatToString(StringBuilder sb,
                                 int depth)

getAuthor

public final Identification getAuthor()
Returns the author of this commit.

Returns:
the author of this commit

getCommitter

public final Identification getCommitter()
Returns the committer of this commit.

Returns:
the committer of this commit

getMessage

public final String getMessage()
Returns the message of this commit.

Returns:
the message of this commit

getObjectId

public final ObjectId getObjectId()
Returns an object representing the hash value that uniquely identifies this git object.

Returns:
an object representing the hash value

getParents

public final br.com.objectos.collections.list.ImmutableList<ObjectId> getParents()
Returns the identifiers of the parents of this commit.

Returns:
the identifiers of the parents of this commit

getTree

public final ObjectId getTree()
Returns the identifier of the tree of this commit

Returns:
the identifier of the tree of this commmit

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2020–2021 Objectos Software LTDA. All rights reserved.