public abstract class FieldDecoder<A> extends Object
| Modifier and Type | Field and Description |
|---|---|
DecodeJson<A> |
decoder |
String |
name |
public final String name
public final DecodeJson<A> decoder
public <B> FieldDecoder<B> map(Function<A,B> f)
public <B> FieldDecoder<B> flatMap(Function<A,FieldDecoder<B>> f)
public <B> FieldDecoder<B> narrow(Function<A,io.vavr.control.Try<B>> f)
public <B> FieldDecoder<B> tryNarrow(Function<A,B> f)
public FieldDecoder<A> withDefaultValue(A defaultValue)
public static FieldDecoder<String> TString(String name)
public static FieldDecoder<Integer> TInt(String name)
public static FieldDecoder<Double> TDouble(String name)
public static FieldDecoder<Long> TLong(String name)
public static FieldDecoder<Boolean> TBoolean(String name)
public static <B> FieldDecoder<io.vavr.control.Option<B>> TOptional(String name, DecodeJson<B> decoder)
public static <B> FieldDecoder<Optional<B>> TJavaOptional(String name, DecodeJson<B> decoder)
public static <B> FieldDecoder<io.vavr.collection.List<B>> TList(String name, DecodeJson<B> decoder)
public static <B> FieldDecoder<List<B>> TJavaList(String name, DecodeJson<B> decoder)
public static <B> FieldDecoder<B> typedFieldOf(String name, DecodeJson<B> decoder)
public static <B> FieldDecoder<B> typedFieldOf(String name, DecodeJson<B> decoder, io.vavr.control.Option<B> defaultValue)
Copyright © 2015–2017. All rights reserved.