T - the type encoded to and decoded from.public interface UuidCodec<T>
All implementations of this interface throw InvalidUuidException if
an invalid argument argument is given.
The RuntimeException cases that can be detected beforehand are
translated into an InvalidUuidException.
InvalidUuidException| Modifier and Type | Method and Description |
|---|---|
UUID |
decode(T type)
Get a UUID from a generic type.
|
T |
encode(UUID uuid)
Get a generic type from a UUID.
|
T encode(UUID uuid)
uuid - a UUIDInvalidUuidException - if the argument is invalidUUID decode(T type)
type - a generic typeInvalidUuidException - if the argument is invalidCopyright © 2024. All rights reserved.