Example usage for Java org.eclipse.jgit.lib ObjectId fields, constructors, methods, implement or subclass
The text is from its open source code.
AbbreviatedObjectId | abbreviate(int len) Return an abbreviation (prefix) of this object SHA-1. |
int | compareTo(AnyObjectId other) Compare this ObjectId to another and obtain a sort ordering. |
ObjectId | copy() Obtain an immutable copy of this current object name value. |
void | copyRawTo(byte[] b, int o) Copy this ObjectId to a byte array. |
void | copyTo(OutputStream w) Copy this ObjectId to an output writer in hex format. |
boolean | equals(AnyObjectId other) Determine if this ObjectId has exactly the same value as another. |
boolean | equals(final AnyObjectId firstObjectId, final AnyObjectId secondObjectId) Compare two object identifier byte sequences for equality. |
ObjectId | fromRaw(byte[] bs) Convert an ObjectId from raw binary representation. |
ObjectId | fromRaw(int[] is) Convert an ObjectId from raw binary representation. |
ObjectId | fromString(String str) Convert an ObjectId from hex characters. |
String | getName() Get string form of the SHA-1, in lower case hexadecimal. |
boolean | isId(@Nullable String id) Test a string of characters to verify it is a hex format. |
String | name() name. |
boolean | startsWith(AbbreviatedObjectId abbr) Tests if this ObjectId starts with the given abbreviation. |
String | toString() |
String | toString(ObjectId i) Convert an ObjectId into a hex string representation. |