decodingError| Modifier and Type | Method and Description |
|---|---|
static <S,T> Codec<S,T> |
from(Decoder<T,S> decoder,
Encoder<S,T> encoder)
Creates a codec based on an implicit decoder and encoder
|
static <S,T> Codec<S,T> from(Decoder<T,S> decoder, Encoder<S,T> encoder)
S - Type of sourceT - Type of targetdecoder - Implicit instance of decoderencoder - Implicit instance of encoder