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