Interface UuidCodec<T>

    • Method Detail

      • encode

        T encode​(UUID uuid)
        Get a generic type from a UUID.
        Parameters:
        uuid - a UUID
        Returns:
        a generic type
        Throws:
        InvalidUuidException - if the argument is invalid
      • decode

        UUID decode​(T type)
        Get a UUID from a generic type.
        Parameters:
        type - a generic type
        Returns:
        a UUID
        Throws:
        InvalidUuidException - if the argument is invalid