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