public class ObjectId extends BaseId implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
LENGTH |
| Constructor and Description |
|---|
ObjectId(byte[] id) |
| Modifier and Type | Method and Description |
|---|---|
static ObjectId |
fromByteBuffer(ByteBuffer bb)
Create an ObjectId from a ByteBuffer.
|
static ObjectId |
fromRandom()
Generate an ObjectId with random value.
|
int |
size()
Derived class should implement this function.
|
byteBuffer2Bytes, equals, getBytes, hashCode, hexString2Bytes, isNil, toByteBuffer, toStringpublic static final int LENGTH
public static ObjectId fromByteBuffer(ByteBuffer bb)
public static ObjectId fromRandom()
Copyright © 2021. All rights reserved.