br.com.objectos.git
public final class ObjectId extends MaybeObjectId
| Modifier and Type | Method and Description |
|---|---|
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.
|
empty, toStringpublic static ObjectId parse(String id) throws InvalidObjectIdFormatException
ObjectId instance.id - the text to be parsedObjectId instanceInvalidObjectIdFormatException - 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.
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()
public final boolean isObjectId()
true.isObjectId in class MaybeObjectIdtrue alwayspublic final String print()
Copyright © 2020–2022 Objectos Software LTDA. All rights reserved.