Package arez.persist.runtime
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
-
Method Details
-
decode
Decode encoded value into form used by the application.- Parameters:
encoded- the encoded form of the value.- Returns:
- the value.
-
encode
Encode value into form used by the storage system.- Parameters:
value- the decoded value.- Returns:
- the encoded form of the value.
-