Package arez.persist.runtime
Class TypeConverter
java.lang.Object
arez.persist.runtime.TypeConverter
A converter that encodes properties for a specific type.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TypeConverter
-
-
Method Details
-
decode
Decode encoded value into form used by the application.- Type Parameters:
A- the type of the value.E- the type of the encoded value.- Parameters:
key- the property name.encoded- the encoded form of the value.- Returns:
- the value.
-
encode
Encode value into form used by the storage system.- Type Parameters:
A- the type of the value.E- the type of the encoded value.- Parameters:
key- the property name.value- the decoded value.- Returns:
- the encoded form of the value.
-