Interface ValueTranscoder<T>

    • Method Detail

      • decodeStringValue

        T decodeStringValue​(String value)
        Decodes the supplied ldap attribute value into a custom type.
        Parameters:
        value - to decode
        Returns:
        decoded value
      • decodeBinaryValue

        T decodeBinaryValue​(byte[] value)
        Decodes the supplied ldap attribute value into a custom type.
        Parameters:
        value - to decode
        Returns:
        decoded value
      • encodeStringValue

        String encodeStringValue​(T value)
        Encodes the supplied value into an ldap attribute value.
        Parameters:
        value - to encode
        Returns:
        encoded value
      • encodeBinaryValue

        byte[] encodeBinaryValue​(T value)
        Encodes the supplied value into an ldap attribute value.
        Parameters:
        value - to encode
        Returns:
        encoded value
      • getType

        Class<T> getType()
        Returns the type produced by this value transcoder.
        Returns:
        type produced by this value transcoder
      • decoder

        default Function<byte[],​T> decoder()
        Functional implementation.
        Returns:
        decoder function
      • encoder

        default Function<T,​byte[]> encoder()
        Functional implementation.
        Returns:
        encoder function