public class MutableLongObjectId extends AnyLongObjectId
MutableObjectId| Constructor and Description |
|---|
MutableLongObjectId()
Empty constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Make this id match
LongObjectId.zeroId(). |
void |
fromObjectId(AnyLongObjectId src)
Copy a LongObjectId into this mutable buffer.
|
void |
fromRaw(byte[] bs)
Convert a LongObjectId from raw binary representation.
|
void |
fromRaw(byte[] bs,
int p)
Convert a LongObjectId from raw binary representation.
|
void |
fromRaw(long[] longs)
Convert a LongObjectId from binary representation expressed in integers.
|
void |
fromRaw(long[] longs,
int p)
Convert a LongObjectId from binary representation expressed in longs.
|
void |
fromString(byte[] buf,
int offset)
Convert a LongObjectId from hex characters (US-ASCII).
|
void |
fromString(String str)
Convert a LongObjectId from hex characters.
|
void |
setByte(int index,
int value)
Set any byte in the id.
|
LongObjectId |
toObjectId()
Obtain an immutable copy of this current object.
|
abbreviate, compareTo, compareTo, compareTo, copy, copyRawTo, copyRawTo, copyRawTo, copyRawTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, equals, equals, equals, getByte, getFirstByte, getName, getSecondByte, hashCode, isEqual, name, startsWith, toStringpublic MutableLongObjectId()
public void setByte(int index,
int value)
index - index of the byte to set in the raw form of the ObjectId. Must
be in range [0,
Constants.LONG_OBJECT_ID_LENGTH).value - the value of the specified byte at index. Values are
unsigned and thus are in the range [0,255] rather than the
signed byte range of [-128, 127].ArrayIndexOutOfBoundsException - index is less than 0, equal to
Constants.LONG_OBJECT_ID_LENGTH,
or greater than
Constants.LONG_OBJECT_ID_LENGTH.public void clear()
LongObjectId.zeroId().public void fromObjectId(AnyLongObjectId src)
src - the source id to copy from.public void fromRaw(byte[] bs)
bs - the raw byte buffer to read from. At least 32 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 32 bytes after p
must be available within this byte array.p - position to read the first byte of data from.public void fromRaw(long[] longs)
longs - the raw long buffer to read from. At least 4 longs must be
available within this longs array.public void fromRaw(long[] longs,
int p)
longs - the raw int buffer to read from. At least 4 longs after p must
be available within this longs 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 32 bytes after
offset must be available within this byte array.offset - position to read the first character from.public void fromString(String str)
str - the string to read from. Must be 64 characters long.public LongObjectId toObjectId()
See AnyLongObjectId.copy() if this is a possibly subclassed (but
immutable) identity and the application needs a lightweight identity
only reference.
toObjectId in class AnyLongObjectIdthis if this is already an
immutable instance.Copyright © 2019 Eclipse JGit Project. All rights reserved.