Interface Converter<A,E>

Type Parameters:
A - the application form of the value.
E - the encoded form of the value.

public interface Converter<A,E>
Converter that encodes a persistent property from application form to encoded form and back again.
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(E encoded)
    Decode encoded value into form used by the application.
    encode(A value)
    Encode value into form used by the storage system.
  • Method Details

    • decode

      A decode(@Nonnull E encoded)
      Decode encoded value into form used by the application.
      Parameters:
      encoded - the encoded form of the value.
      Returns:
      the value.
    • encode

      E encode(@Nonnull A value)
      Encode value into form used by the storage system.
      Parameters:
      value - the decoded value.
      Returns:
      the encoded form of the value.