public static class DecodeJson.DecodeJsonWithDefault<A> extends Object implements DecodeJson<A>
DecodeJson.DecodeJsonWithDefault<A>| Constructor and Description |
|---|
DecodeJsonWithDefault(DecodeJson<A> delegate,
A defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
javaslang.control.Option<A> |
defaultValue() |
DecodeResult<A> |
fromJson(Json.JValue value) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitflatMap, fromJsonUnsafe, map, tryMap, withDefaultValuepublic DecodeJsonWithDefault(DecodeJson<A> delegate, A defaultValue)
public DecodeResult<A> fromJson(Json.JValue value)
fromJson in interface DecodeJson<A>public javaslang.control.Option<A> defaultValue()
defaultValue in interface DecodeJson<A>Copyright © 2015–2017. All rights reserved.