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