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,
io.vavr.control.Option<String> factoryMethod) |
| Modifier and Type | Method and Description |
|---|---|
DecodeResult<A> |
fromJson(net.hamnaberg.json.Json.JValue value) |
net.hamnaberg.json.Json.JValue |
toJson(A value) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfield, lift, lift, list, named, narrow, option, tryNarrow, withDefaultValue, xmap, xmapicontramap, fieldEncoder, toJsonUnsafeand, defaultValue, either, either, fieldDecoder, filter, filter, flatMap, fromJsonUnsafe, map, or, sequence, successful, tryMappublic ReflectionCodec(Class<A> type, Map<String,JsonCodec<?>> codecs, Predicate<Param> predicate)
public 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.