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