public class IntervalConverter extends Object implements JsonCodec<Interval,JsonObject>
| Modifier and Type | Field and Description |
|---|---|
static IntervalConverter |
INSTANCE |
| Constructor and Description |
|---|
IntervalConverter() |
| Modifier and Type | Method and Description |
|---|---|
Interval |
decode(JsonObject value) |
JsonObject |
encode(Interval value) |
static void |
fromJson(Iterable<Map.Entry<String,Object>> json,
Interval obj) |
Class<Interval> |
getTargetClass() |
static void |
toJson(Interval obj,
JsonObject json) |
static void |
toJson(Interval obj,
Map<String,Object> json) |
public static final IntervalConverter INSTANCE
public JsonObject encode(Interval value)
encode in interface JsonEncoder<Interval,JsonObject>public Interval decode(JsonObject value)
decode in interface JsonDecoder<Interval,JsonObject>public Class<Interval> getTargetClass()
getTargetClass in interface JsonDecoder<Interval,JsonObject>getTargetClass in interface JsonEncoder<Interval,JsonObject>public static void toJson(Interval obj, JsonObject json)
Copyright © 2019 Eclipse. All rights reserved.