Package dev.orne.test.rnd.params
Class NullableParametersImpl
java.lang.Object
dev.orne.test.rnd.params.NullableParametersImpl
- All Implemented Interfaces:
GenerationParameters
,NullableParameters
,NullableParameters.Builder
- Direct Known Subclasses:
CollectionGenerationParameters
,MapGenerationParameters
,StringGenerationParameters
@API(status=EXPERIMENTAL,
since="0.1")
public class NullableParametersImpl
extends Object
implements NullableParameters, NullableParameters.Builder
The basic implementation of
NullableParameters
.- Since:
- 0.1
- Version:
- 1.0, 2022-12
- Author:
- (w) Iker Hernaez
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.orne.test.rnd.params.NullableParameters
NullableParameters.Builder
-
Field Summary
Fields inherited from interface dev.orne.test.rnd.params.NullableParameters
DEFAULT_NULLABLE
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor.NullableParametersImpl
(@NotNull GenerationParameters copy) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
Returnstrue
if anull
value is accepted.void
setNullable
(boolean nullable) Sets if anull
value is accepted.toString()
@NotNull NullableParametersImpl
withNullable
(boolean nullable) Sets if anull
value is accepted.
-
Constructor Details
-
NullableParametersImpl
public NullableParametersImpl()Empty constructor. -
NullableParametersImpl
Copy constructor.- Parameters:
copy
- The instance to copy.
-
-
Method Details
-
isNullable
public boolean isNullable()Returnstrue
if anull
value is accepted.- Specified by:
isNullable
in interfaceNullableParameters
- Returns:
- If a
null
value is accepted.
-
setNullable
public void setNullable(boolean nullable) Sets if anull
value is accepted.- Specified by:
setNullable
in interfaceNullableParameters
- Parameters:
nullable
- If anull
value is accepted.
-
withNullable
Sets if anull
value is accepted.- Specified by:
withNullable
in interfaceNullableParameters.Builder
- Parameters:
nullable
- If anull
value is accepted.- Returns:
- This instance, for method chaining.
-
hashCode
public int hashCode() -
equals
-
toString
-