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