Creates a new Decoder instance from the specified function.
Creates a new Decoder instance from the specified function.
Creates a new Decoder instance from the specified alternatives.
Creates a new Decoder instance from the specified alternatives.
When decoding, each of the specified decoders will be attempted. The result will be the first success if found, or the last failure otherwise.
Note that an exception will be thrown if the specified list is empty.
Creates a new Decoder instance from the specified alternatives.
Creates a new Decoder instance from the specified alternatives.
When decoding, each of the specified decoders will be attempted. The result will be the first success if found, or the last failure otherwise.
Provides methods commonly declared by companion objects for specialised decoder types.
Most libraries that use kantan.codecs will declare type aliases for decoders -
CellDecoder
in kantan.csv, for example. DecoderCompanion lets such types have a useful companion object without a lot of code duplication.