Interface FieldCodec<T,F>
- All Superinterfaces:
FieldDecoder<F>,FieldEncoder<T>
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <F> @NotNull FieldCodecBuilder<F> static <T,F> @NotNull FieldCodec <T, F> create(@NotNull FieldEncoder<T> encoder, @NotNull FieldDecoder<F> decoder) Methods inherited from interface dev.siroshun.codec4j.api.decoder.object.FieldDecoder
decodeFieldValue, fieldName, onNotDecodedMethods inherited from interface dev.siroshun.codec4j.api.encoder.object.FieldEncoder
canOmit, encodeFieldValue, fieldName
-
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)
-