public class ArgumentConverter extends Object implements JsonCodec<Argument,JsonObject>
| Modifier and Type | Field and Description |
|---|---|
static ArgumentConverter |
INSTANCE |
| Constructor and Description |
|---|
ArgumentConverter() |
| Modifier and Type | Method and Description |
|---|---|
Argument |
decode(JsonObject value)
Decode
<J> to <T>. |
JsonObject |
encode(Argument value)
Encode
<T> to <J>. |
Class<Argument> |
getTargetClass() |
public static final ArgumentConverter INSTANCE
public JsonObject encode(Argument value)
JsonEncoder<T> to <J>.
value will not be null and the implementation must not return null.encode in interface JsonEncoder<Argument,JsonObject>value - the valuepublic Argument decode(JsonObject value)
JsonDecoder<J> to <T>.
json will not be null and the implementation must not return null.decode in interface JsonDecoder<Argument,JsonObject>value - the json valuepublic Class<Argument> getTargetClass()
getTargetClass in interface JsonDecoder<Argument,JsonObject>getTargetClass in interface JsonEncoder<Argument,JsonObject><T>Copyright © 2019 Eclipse. All rights reserved.