Interface FieldDecoder<F>

All Known Subinterfaces:
FieldCodec<T,F>

public interface FieldDecoder<F>
  • Method Details

    • create

      @NotNull static <F> @NotNull FieldDecoder<F> create(@NotNull @NotNull String fieldName, @NotNull @NotNull Decoder<F> decoder, @NotNull @NotNull Supplier<dev.siroshun.jfun.result.Result<F,DecodeError>> onNotDecoded)
    • required

      @NotNull static <F> @NotNull FieldDecoder<F> required(@NotNull @NotNull String fieldName, @NotNull @NotNull Decoder<F> decoder)
    • optional

      @NotNull static <F> @NotNull FieldDecoder<F> optional(@NotNull @NotNull String fieldName, @NotNull @NotNull Decoder<F> decoder, @UnknownNullability F defaultValue)
    • supplying

      @NotNull static <F> @NotNull FieldDecoder<F> supplying(@NotNull @NotNull String fieldName, @NotNull @NotNull Decoder<F> decoder, @NotNull @NotNull Supplier<F> defaultValueSupplier)
    • fieldName

      @NotNull @NotNull String fieldName()
    • decodeFieldValue

      @NotNull @NotNull dev.siroshun.jfun.result.Result<F,DecodeError> decodeFieldValue(@NotNull @NotNull In in)
    • onNotDecoded

      @NotNull @NotNull dev.siroshun.jfun.result.Result<F,DecodeError> onNotDecoded()