Interface Decoder<T>

All Known Subinterfaces:
Codec<T>, DataComponent<T>, StructCodec<R>

@Experimental public interface Decoder<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    <D> @NotNull Result<T>
    decode(@NotNull Transcoder<D> coder, D value)
     
    static <T> @NotNull Decoder<T>
    unit(T value)
     
  • Method Details

    • unit

      @NotNull static <T> @NotNull Decoder<T> unit(@NotNull T value)
    • decode

      @NotNull <D> @NotNull Result<T> decode(@NotNull @NotNull Transcoder<D> coder, @NotNull D value)