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

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

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

      • decode

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