public class ObjectId extends BaseId implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
LENGTH |
| 构造器和说明 |
|---|
ObjectId(byte[] id) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.