public class UniqueId extends BaseId implements Serializable
| Constructor and Description |
|---|
UniqueId(byte[] id) |
| Modifier and Type | Method and Description |
|---|---|
static UniqueId |
fromByteBuffer(ByteBuffer bb)
Creates a UniqueId from a ByteBuffer.
|
static UniqueId |
fromBytes(byte[] bytes)
Creates a UniqueId from bytes
|
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 final int LENGTH
public static final UniqueId NIL
public static UniqueId fromByteBuffer(ByteBuffer bb)
public static UniqueId fromBytes(byte[] bytes)
public static UniqueId randomId()
Copyright © 2023. All rights reserved.