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