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