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