public final class ReflectionCodec<A> extends Object implements JsonCodec<A>
DecodeJson.DecodeJsonWithDefault<A>| Constructor and Description |
|---|
ReflectionCodec(Class<A> type) |
ReflectionCodec(Class<A> type,
Map<String,JsonCodec<?>> codecs) |
ReflectionCodec(Class<A> type,
Map<String,JsonCodec<?>> codecs,
Predicate<Param> predicate) |
ReflectionCodec(Class<A> type,
Map<String,JsonCodec<?>> codecs,
Predicate<Param> predicate,
javaslang.control.Option<String> factoryMethod) |
| Modifier and Type | Method and Description |
|---|---|
DecodeResult<A> |
fromJson(net.hamnaberg.json.Json.JValue value) |
javaslang.control.Option<net.hamnaberg.json.Json.JValue> |
toJson(A value) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlift, named, narrow, narrowBoth, tryNarrow, tryNarrowBoth, xmapcontramap, toJsonUnsafedefaultValue, flatMap, fromJsonUnsafe, map, tryMap, withDefaultValuepublic ReflectionCodec(Class<A> type, Map<String,JsonCodec<?>> codecs, Predicate<Param> predicate)
public javaslang.control.Option<net.hamnaberg.json.Json.JValue> toJson(A value)
toJson in interface EncodeJson<A>public DecodeResult<A> fromJson(net.hamnaberg.json.Json.JValue value)
fromJson in interface DecodeJson<A>Copyright © 2015–2017. All rights reserved.