public class UniqueId extends BaseId implements Serializable
| 构造器和说明 |
|---|
UniqueId(byte[] id) |
| 限定符和类型 | 方法和说明 |
|---|---|
static UniqueId |
fromByteBuffer(ByteBuffer bb)
Creates a UniqueId from a ByteBuffer.
|
static UniqueId |
fromHexString(String hex)
Create a UniqueId from a hex string.
|
static UniqueId |
randomId()
Generate an UniqueId with random value.
|
int |
size()
Derived class should implement this function.
|
byteBuffer2Bytes, equals, getBytes, hashCode, hexString2Bytes, isNil, toByteBuffer, toStringpublic static UniqueId fromByteBuffer(ByteBuffer bb)
public static UniqueId randomId()
Copyright © 2022. All rights reserved.