Interface FieldCodec<T,F>

All Superinterfaces:
FieldDecoder<F>, FieldEncoder<T>

public interface FieldCodec<T,F> extends FieldEncoder<T>, FieldDecoder<F>
  • Method Details

    • builder

      @Contract("_, _ -> new") @NotNull static <F> @NotNull FieldCodecBuilder<F> builder(@NotNull @NotNull String fieldName, @NotNull @NotNull Codec<F> codec)
    • create

      @NotNull static <T, F> @NotNull FieldCodec<T,F> create(@NotNull @NotNull FieldEncoder<T> encoder, @NotNull @NotNull FieldDecoder<F> decoder)