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