|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectbr.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. |
String |
toString()
Returns the string representation of this id 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 |
|---|
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:
formatToString in interface br.com.objectos.core.object.ToStringObjecttoString - the builder of a toString methodlevel - the indentation level.public final String getHexString()
public final ObjectId getObjectId()
getObjectId in interface MaybeObjectIdpublic final int hashCode()
hashCode in class Objectpublic final boolean isObjectId()
true.
isObjectId in interface MaybeObjectIdtrue alwayspublic final String print()
public 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 | |||||||