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