Interface DeserializationConfiguration


public interface DeserializationConfiguration
Configuration for deserialization.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    default boolean
    Whether a null field or a missing value for a primitive should fail the deserialization.
    boolean
    Whether to ignore unknown values during deserialization.
    boolean
    Whether null field should be annotated with a nullable annotations.
    default boolean
    Whether the supertype is used by default when no supertype is resolved.
  • Field Details

  • Method Details

    • isIgnoreUnknown

      @Bindable(defaultValue="true") boolean isIgnoreUnknown()
      Whether to ignore unknown values during deserialization.
      Returns:
      True if unknown values should simply be ignored.
    • getArraySizeThreshold

      @Bindable(defaultValue="100") int getArraySizeThreshold()
      Returns:
      The array size thresh hold for use in binding. Defaults to 100.
    • isStrictNullable

      @Bindable(defaultValue="false") boolean isStrictNullable()
      Whether null field should be annotated with a nullable annotations. Defaults to false
      Returns:
      True if null field should be annotated with a nullable annotations
    • isFailOnNullForPrimitives

      @Bindable(defaultValue="false") default boolean isFailOnNullForPrimitives()
      Whether a null field or a missing value for a primitive should fail the deserialization. Defaults to false
      Returns:
      True if a null field or a missing value for a primitive should fail the deserialization
    • isSubtypesRequireDefaultImpl

      @NextMajorVersion("Inline to true to have the behaviour the same as for Jackson") @Bindable(defaultValue="false") default boolean isSubtypesRequireDefaultImpl()
      Whether the supertype is used by default when no supertype is resolved.
      Returns:
      True to avoid the supertype and use `defaultImpl` property