Package dev.orne.test.rnd.params
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 ClassesModifier and TypeInterfaceDescriptionstatic interface
Interface forNullableParameters
builders. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
If anull
value is accepted by default. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if anull
value is accepted.void
setNullable
(boolean nullable) Sets if anull
value is accepted.
-
Field Details
-
DEFAULT_NULLABLE
static final boolean DEFAULT_NULLABLEIf anull
value is accepted by default.- See Also:
-
-
Method Details
-
isNullable
boolean isNullable()Returnstrue
if anull
value is accepted.- Returns:
- If a
null
value is accepted.
-
setNullable
void setNullable(boolean nullable) Sets if anull
value is accepted.- Parameters:
nullable
- If anull
value is accepted.
-