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 interfaceInterface forNullableParametersbuilders. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanIf anullvalue is accepted by default. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif anullvalue is accepted.voidsetNullable(boolean nullable) Sets if anullvalue is accepted.
-
Field Details
-
DEFAULT_NULLABLE
static final boolean DEFAULT_NULLABLEIf anullvalue is accepted by default.- See Also:
-
-
Method Details
-
isNullable
boolean isNullable()Returnstrueif anullvalue is accepted.- Returns:
- If a
nullvalue is accepted.
-
setNullable
void setNullable(boolean nullable) Sets if anullvalue is accepted.- Parameters:
nullable- If anullvalue is accepted.
-