Interface EntryDecoder<K,V,R>
- Type Parameters:
K- the type of the keyV- the type of the valueR- the type of the source collection to decode
- All Superinterfaces:
Decoder<R>
A
Decoder for decoding entries from an In.readMap(Object, java.util.function.BiFunction)-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull dev.siroshun.jfun.result.Result<R, DecodeError> Decodes the data from the providedIn.@NotNull EntryProcessor<K, V, ?, R> Returns theEntryProcessorfor decoding entries and collect them.Methods inherited from interface dev.siroshun.codec4j.api.decoder.Decoder
catchError, flatMap, inspect, map, toListDecoder, toOptionalFieldDecoder, toRequiredFieldDecoder, toSetDecoder, toSetDecoder, toSupplyingFieldDecoder
-
Method Details
-
processor
Returns theEntryProcessorfor decoding entries and collect them.- Returns:
- the
EntryProcessor
-
decode
@NotNull default @NotNull dev.siroshun.jfun.result.Result<R,DecodeError> decode(@NotNull @NotNull In in) Description copied from interface:DecoderDecodes the data from the providedIn.- Specified by:
decodein interfaceDecoder<K>- Parameters:
in- theInfor reading the data to decode- Returns:
- a result containing the decoded data, or a
DecodeErrorif the operation failed
-