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