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