|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jgit.lib.AnyObjectId
org.eclipse.jgit.lib.MutableObjectId
public class MutableObjectId
A mutable SHA-1 abstraction.
| Constructor Summary | |
|---|---|
MutableObjectId()
Empty constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Make this id match ObjectId.zeroId(). |
void |
fromRaw(byte[] bs)
Convert an ObjectId from raw binary representation. |
void |
fromRaw(byte[] bs,
int p)
Convert an ObjectId from raw binary representation. |
void |
fromRaw(int[] ints)
Convert an ObjectId from binary representation expressed in integers. |
void |
fromRaw(int[] ints,
int p)
Convert an ObjectId from binary representation expressed in integers. |
void |
fromString(byte[] buf,
int offset)
Convert an ObjectId from hex characters (US-ASCII). |
void |
fromString(java.lang.String str)
Convert an ObjectId from hex characters. |
ObjectId |
toObjectId()
Obtain an immutable copy of this current object name value. |
| Methods inherited from class org.eclipse.jgit.lib.AnyObjectId |
|---|
abbreviate, abbreviate, compareTo, compareTo, copy, copyRawTo, copyRawTo, copyRawTo, copyRawTo, copyTo, copyTo, copyTo, copyTo, equals, equals, equals, getFirstByte, getName, hashCode, name, startsWith, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MutableObjectId()
| Method Detail |
|---|
public void clear()
ObjectId.zeroId().
public void fromRaw(byte[] bs)
bs - the raw byte buffer to read from. At least 20 bytes must be
available within this byte array.
public void fromRaw(byte[] bs,
int p)
bs - the raw byte buffer to read from. At least 20 bytes after p
must be available within this byte array.p - position to read the first byte of data from.public void fromRaw(int[] ints)
ints - the raw int buffer to read from. At least 5 integers must be
available within this integers array.
public void fromRaw(int[] ints,
int p)
ints - the raw int buffer to read from. At least 5 integers after p
must be available within this integers array.p - position to read the first integer of data from.
public void fromString(byte[] buf,
int offset)
buf - the US-ASCII buffer to read from. At least 40 bytes after
offset must be available within this byte array.offset - position to read the first character from.public void fromString(java.lang.String str)
str - the string to read from. Must be 40 characters long.public ObjectId toObjectId()
AnyObjectId
See AnyObjectId.copy() if this is a possibly subclassed (but
immutable) identity and the application needs a lightweight identity
only reference.
toObjectId in class AnyObjectIdthis if this is already
an immutable instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||