T - the type encoded to JsonJ - the json typepublic interface JsonEncoder<T,J>
<J> type to <T>.
<T> can be any class or interface type, <J> can be one of the following:
| Modifier and Type | Method and Description |
|---|---|
J |
encode(T value)
Encode
<T> to <J>. |
Class<T> |
getTargetClass() |
J encode(T value) throws IllegalArgumentException
<T> to <J>.
value will not be null and the implementation must not return null.value - the valueIllegalArgumentException - when it cannot decode the valueCopyright © 2019 Eclipse. All rights reserved.