Package e.java.codec

Interface Decoder<I,O>

Type Parameters:
I - Type of input
O - Type of output
All Known Subinterfaces:
Codec<S,T>

public interface Decoder<I,O>
Typeclass defining how to decode an input value to an output value, possibly failing with E
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final E
    A default E to be used when decoding fails
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(I input)
    Decodes an input, possibly failing with E
  • Field Details

    • decodingError

      static final E decodingError
      A default E to be used when decoding fails
  • Method Details

    • decode

      EOr<O> decode(I input)
      Decodes an input, possibly failing with E
      Parameters:
      input - An input
      Returns:
      Decoded output or E
      See Also: