Interface Codec.Decoder<D,​E,​X extends Throwable>

Type Parameters:
D - the decoded type
E - the encoded type
X - the exception type
Enclosing interface:
Codec<D,​E,​DX extends Throwable,​EX extends Throwable>

public static interface Codec.Decoder<D,​E,​X extends Throwable>
A decoder.
Since:
4.0.0
  • Method Summary

    Modifier and Type Method Description
    @NonNull D decode​(@NonNull E encoded)
    Decodes.
  • Method Details

    • decode

      @NonNull D decode​(@NonNull E encoded) throws X extends Throwable
      Decodes.
      Parameters:
      encoded - the encoded input
      Returns:
      the decoded value
      Throws:
      X - if an exception is encountered while decoding
      Since:
      4.0.0