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 TypeMethodDescriptionbooleaninthashCode()booleanReturnstrueif anullvalue is accepted.voidsetNullable(boolean nullable) Sets if anullvalue is accepted.toString()@NotNull NullableParametersImplwithNullable(boolean nullable) Sets if anullvalue is accepted.
-
Constructor Details
-
NullableParametersImpl
public NullableParametersImpl()Empty constructor. -
NullableParametersImpl
Copy constructor.- Parameters:
copy- The instance to copy.
-
-
Method Details
-
isNullable
public boolean isNullable()Returnstrueif anullvalue is accepted.- Specified by:
isNullablein interfaceNullableParameters- Returns:
- If a
nullvalue is accepted.
-
setNullable
public void setNullable(boolean nullable) Sets if anullvalue is accepted.- Specified by:
setNullablein interfaceNullableParameters- Parameters:
nullable- If anullvalue is accepted.
-
withNullable
Sets if anullvalue is accepted.- Specified by:
withNullablein interfaceNullableParameters.Builder- Parameters:
nullable- If anullvalue is accepted.- Returns:
- This instance, for method chaining.
-
hashCode
public int hashCode() -
equals
-
toString
-