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) |
JsonObject |
encode(Point value) |
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)
encode in interface JsonEncoder<Point,JsonObject>public Point decode(JsonObject value)
decode in interface JsonDecoder<Point,JsonObject>public Class<Point> getTargetClass()
getTargetClass in interface JsonDecoder<Point,JsonObject>getTargetClass in interface JsonEncoder<Point,JsonObject>public static void toJson(Point obj, JsonObject json)
Copyright © 2019 Eclipse. All rights reserved.