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