br.com.objectos.git
public final class Entry extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
formatToString(StringBuilder sb,
int depth) |
EntryMode |
getMode()
Returns the file mode of this tree entry.
|
String |
getName()
Returns the name of this tree entry.
|
ObjectId |
getObjectId()
Returns an object representing the hash value that uniquely identifies the
git object referenced by this tree entry.
|
boolean |
hasName(String name)
Returns
true if this tree entry has the specified name,
false otherwise. |
boolean |
isBlob()
Returns
true if this tree entry references a blob object. |
boolean |
isTree()
Returns
true if this tree entry references a tree object. |
String |
print()
Returns a string representation of the form
octal blob|tree hash name. |
String |
toString() |
public final void formatToString(StringBuilder sb, int depth)
public final EntryMode getMode()
public final String getName()
public final ObjectId getObjectId()
public final boolean isBlob()
true if this tree entry references a blob object.true if this tree entry references a blob objectpublic final boolean isTree()
true if this tree entry references a tree object.true if this tree entry references a tree objectpublic final String print()
octal blob|tree hash name.public final boolean hasName(String name)
true if this tree entry has the specified name,
false otherwise.name - the value to test this entry's name againsttrue if this tree entry has the specified name,
false otherwiseCopyright © 2020–2022 Objectos Software LTDA. All rights reserved.