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