br.com.objectos.git
Class Tree

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

public final class Tree
extends Object

A Git tree object resulting from a read tree operation.

Since:
1

Method Summary
 boolean equals(Object obj)
          Compares the specified object with this Git object for equality.
 void formatToString(StringBuilder sb, int depth)
           
 br.com.objectos.collections.list.ImmutableList<Entry> getEntries()
          Returns the entries of this tree object.
 ObjectId getObjectId()
          Returns the hash value that uniquely identifies this Git object.
 int hashCode()
          Returns the hash code value of this Git object.
 String toString()
          Returns the string representation of this Git object as defined by the ToStringObject.formatToString(StringBuilder, int) method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

formatToString

public final void formatToString(StringBuilder sb,
                                 int depth)

getEntries

public final br.com.objectos.collections.list.ImmutableList<Entry> getEntries()
Returns the entries of this tree object.

Returns:
the entries of this tree object

equals

public final boolean equals(Object obj)
Compares the specified object with this Git object for equality.

Returns true if and only if the specified object is also a Git object of the same type and if both instances have the same hash value.

Overrides:
equals in class Object
Parameters:
obj - the object to be compared for equality with this Git object
Returns:
true if the specified object is equal to this Git object

getObjectId

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

Returns:
the hash value that uniquely identifies this Git object

hashCode

public final int hashCode()
Returns the hash code value of this Git object.

Overrides:
hashCode in class Object
Returns:
the hash code value of this Git object

toString

public final String toString()
Returns the string representation of this Git object as defined by the ToStringObject.formatToString(StringBuilder, int) method.

Overrides:
toString in class Object
Returns:
the string representation of this Git object


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