Interface NullableParameters

All Superinterfaces:
GenerationParameters
All Known Subinterfaces:
NullableParameters.Builder
All Known Implementing Classes:
CollectionGenerationParameters, MapGenerationParameters, NullableParametersImpl, StringGenerationParameters

@API(status=EXPERIMENTAL, since="0.1") public interface NullableParameters extends GenerationParameters
Interface for generation parameters for value types that can be null.
Since:
0.1
Version:
1.0, 2022-12
Author:
(w) Iker Hernaez
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Interface for NullableParameters builders.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
    If a null value is accepted by default.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if a null value is accepted.
    void
    setNullable(boolean nullable)
    Sets if a null value is accepted.
  • Field Details

    • DEFAULT_NULLABLE

      static final boolean DEFAULT_NULLABLE
      If a null value is accepted by default.
      See Also:
  • Method Details

    • isNullable

      boolean isNullable()
      Returns true if a null value is accepted.
      Returns:
      If a null value is accepted.
    • setNullable

      void setNullable(boolean nullable)
      Sets if a null value is accepted.
      Parameters:
      nullable - If a null value is accepted.