public interface CustomTypeAdapter<T>
Date:
{@code
CustomTypeAdapter dateCustomTypeAdapter = new CustomTypeAdapter() { | Modifier and Type | Method and Description |
|---|---|
T |
decode(java.lang.String value)
De-serializes the value to the custom scalar type.
|
java.lang.String |
encode(T value)
Serializes the custom scalar type to the corresponding string value.
|
T decode(@Nonnull java.lang.String value)
value - the value to de-serialize@Nonnull
java.lang.String encode(@Nonnull
T value)
value - the custom scalar type to serialize