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