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.
InvalidUuidExceptionT 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.