|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectbr.com.objectos.git.MaybeObjectId
br.com.objectos.git.ObjectId
public final class ObjectId
A hash value that uniquely identifies a Git object.
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares the specified object with this Git object id for equality. |
void |
formatToString(StringBuilder toString,
int level)
Formats and appends to the toString builder at the specified
indentation level a string representation of this id. |
String |
getHexString()
Returns this id as a hex string. |
ObjectId |
getObjectId()
Returns this reference. |
int |
hashCode()
Returns the hash code value of this id. |
boolean |
isObjectId()
Returns true. |
static ObjectId |
parse(String id)
Parses the specified text to produce a ObjectId instance. |
String |
print()
Returns this id as a hex string. |
| Methods inherited from class br.com.objectos.git.MaybeObjectId |
|---|
empty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static ObjectId parse(String id)
throws InvalidObjectIdFormatException
ObjectId instance.
id - the text to be parsed
ObjectId instance
InvalidObjectIdFormatException - if the text could not be parsedpublic final boolean equals(Object obj)
Returns true if and only if the specified object is also a
ObjectId and if both instances have the same hash value.
equals in class Objectobj - the object to be compared for equality with this object id
true if the specified object is equal to this object id
public final void formatToString(StringBuilder toString,
int level)
toString builder at the specified
indentation level a string representation of this id.
The string representation may contain:
toString - the builder of a toString methodlevel - the indentation level.public final String getHexString()
public final ObjectId getObjectId()
getObjectId in class MaybeObjectIdpublic final int hashCode()
hashCode in class Objectpublic final boolean isObjectId()
true.
isObjectId in class MaybeObjectIdtrue alwayspublic final String print()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||