| Modifier and Type | Field and Description |
|---|---|
static StandardBinaryCodec |
INSTANCE
A shared immutable instance.
|
| Constructor and Description |
|---|
StandardBinaryCodec() |
| Modifier and Type | Method and Description |
|---|---|
UUID |
decode(byte[] bytes)
Get a UUID from an array of bytes.
|
byte[] |
encode(UUID uuid)
Get an array of bytes from a UUID.
|
public static final StandardBinaryCodec INSTANCE
public byte[] encode(UUID uuid)
encode in interface UuidCodec<byte[]>uuid - a UUIDInvalidUuidException - if the argument is invalidpublic UUID decode(byte[] bytes)
decode in interface UuidCodec<byte[]>bytes - an array of bytesInvalidUuidException - if the argument is invalidCopyright © 2024. All rights reserved.