Interface Codec.Encoder<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.Encoder<D,​E,​X extends java.lang.Throwable>
    An encoder.
    Since:
    4.0.0
    • Method Detail

      • encode

        @NotNull
        E encode​(@NotNull
                 D decoded)
          throws X extends java.lang.Throwable
        Encodes.
        Parameters:
        decoded - the decoded value
        Returns:
        the encoded output
        Throws:
        X - if an exception is encountered while encoding
        X extends java.lang.Throwable
        Since:
        4.0.0