| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private static final ObjectId | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | ObjectId(int
an int new_1, int an int new_2, int an int new_3, int an int new_4, int an int new_5)Construct an ObjectId from 160 bits provided in 5 words. |
| protected | ObjectId(AnyObjectId
another already parsed ObjectId to copy the value out of. src)Initialize this instance by copying another existing ObjectId. |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if the two identifiers are the same.the first buffer to compare against. Must have at least 20
bytes from position fi through the end of the buffer. firstBuffer, final int first offset within firstBuffer to begin testing. fi, final byte[] the second buffer to compare against. Must have at least 20
bytes from position si through the end of the buffer. secondBuffer, final int first offset within secondBuffer to begin testing. si)Compare two object identifier byte sequences for equality. |
| private static final ObjectId | |
| public static final ObjectId | Returns: the converted object id.the raw byte buffer to read from. At least 20 bytes must be
available within this byte array. bs)Convert an ObjectId from raw binary representation. |
| public static final ObjectId | Returns: the converted object id.the raw byte buffer to read from. At least 20 bytes after p
must be available within this byte array. bs, int position to read the first byte of data from. p)Convert an ObjectId from raw binary representation. |
| public static final ObjectId | Returns: the converted object id.a bytebuffer with the objectid encoded as 5 consecutive ints.
This is the reverse of bb)ObjectId#copyRawTo(ByteBuffer)Convert an ObjectId from raw binary representation |
| public static final ObjectId | Returns: the converted object id.the raw integers buffer to read from. At least 5 integers must
be available within this int array. is)Convert an ObjectId from raw binary representation. |
| public static final ObjectId | Returns: the converted object id.the raw integers buffer to read from. At least 5 integers
after p must be available within this int array. is, int position to read the first integer of data from. p)Convert an ObjectId from raw binary representation. |
| public static final ObjectId | Returns: the converted object id.the US-ASCII buffer to read from. At least 40 bytes after
offset must be available within this byte array. buf, int position to read the first character from. offset)Convert an ObjectId from hex characters (US-ASCII). |
| public static ObjectId | Returns: the converted object id.the string to read from. Must be 40 characters long. str)Convert an ObjectId from hex characters. |
| public static final boolean | |
| private void | |
| public ObjectId | toObjectId()
Implements abstract org. Obtain an immutable copy of this current object name value. |
| public static final String | |
| private void | |
| public static final ObjectId | Returns: the all-null ObjectId, often used to stand-in for no object.Get the special all-null ObjectId. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ZEROID | back to summary |
|---|---|
| private static final ObjectId ZEROID | |
| ZEROID_STR | back to summary |
|---|---|
| private static final String ZEROID_STR | |
| ObjectId | back to summary |
|---|---|
| public ObjectId(int new_1, int new_2, int new_3, int new_4, int new_5) Construct an ObjectId from 160 bits provided in 5 words.
| |
| ObjectId | back to summary |
|---|---|
| protected ObjectId(AnyObjectId src) Initialize this instance by copying another existing ObjectId. This constructor is mostly useful for subclasses who want to extend an ObjectId with more properties, but initialize from an existing ObjectId instance acquired by other means.
| |
| equals | back to summary |
|---|---|
| public static boolean equals(final byte[] firstBuffer, final int fi, final byte[] secondBuffer, final int si) Compare two object identifier byte sequences for equality.
| |
| fromHexString | back to summary |
|---|---|
| private static final ObjectId fromHexString(byte[] bs, int p) | |
| fromRaw | back to summary |
|---|---|
| public static final ObjectId fromRaw(byte[] bs) Convert an ObjectId from raw binary representation.
| |
| fromRaw | back to summary |
|---|---|
| public static final ObjectId fromRaw(byte[] bs, int p) Convert an ObjectId from raw binary representation.
| |
| fromRaw | back to summary |
|---|---|
| public static final ObjectId fromRaw(ByteBuffer bb) Convert an ObjectId from raw binary representation
| |
| fromRaw | back to summary |
|---|---|
| public static final ObjectId fromRaw(int[] is) Convert an ObjectId from raw binary representation.
| |
| fromRaw | back to summary |
|---|---|
| public static final ObjectId fromRaw(int[] is, int p) Convert an ObjectId from raw binary representation.
| |
| fromString | back to summary |
|---|---|
| public static final ObjectId fromString(byte[] buf, int offset) Convert an ObjectId from hex characters (US-ASCII).
| |
| fromString | back to summary |
|---|---|
| public static ObjectId fromString(String str) Convert an ObjectId from hex characters. | |
| isId | back to summary |
|---|---|
| public static final boolean isId(String id) Test a string of characters to verify it is a hex format.
If true the string can be parsed with
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws IOException | |
| toObjectId | back to summary |
|---|---|
| public ObjectId toObjectId() Implements abstract org. Doc from org. Obtain an immutable copy of this current object name value.
See | |
| toString | back to summary |
|---|---|
| public static final String toString(ObjectId i) Convert an ObjectId into a hex string representation. | |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream os) throws IOException | |
| zeroId | back to summary |
|---|---|
| public static final ObjectId zeroId() Get the special all-null ObjectId.
| |