Interface Decoder<R,T>

Type Parameters:
R - The result type after decoding.
T - The input type to be decoded.
All Superinterfaces:
Codec<R,T>
All Known Subinterfaces:
WebSocketSafeTypeDecoder<R>

@Experimental public non-sealed interface Decoder<R,T> extends Codec<R,T>
A generic interface for decoding data from one type into another.

Implementations of this interface are responsible for converting encoded data into their corresponding decoded representation.

Since:
3.5.0
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(T t)
    Decodes the given input into its corresponding output representation.
  • Method Details

    • decode

      R decode(T t)
      Decodes the given input into its corresponding output representation.
      Parameters:
      t - The input to decode.
      Returns:
      The decoded result.