Package dev.orne.test.rnd.params
Class MapGenerationParameters
java.lang.Object
dev.orne.test.rnd.params.NullableParametersImpl
dev.orne.test.rnd.params.MapGenerationParameters
- All Implemented Interfaces:
GenerationParameters,KeyValueGenericParameters,NullableParameters,NullableParameters.Builder,SizeParameters
@API(status=EXPERIMENTAL,
since="0.1")
public class MapGenerationParameters
extends NullableParametersImpl
implements KeyValueGenericParameters, SizeParameters
Parameters for random
Map generation.- 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.KeyValueGenericParameters
KeyValueGenericParameters.KeysTypeBuilder, KeyValueGenericParameters.ValuesTypeBuilderNested classes/interfaces inherited from interface dev.orne.test.rnd.params.NullableParameters
NullableParameters.BuilderNested classes/interfaces inherited from interface dev.orne.test.rnd.params.SizeParameters
SizeParameters.Builder -
Field Summary
Fields inherited from interface dev.orne.test.rnd.params.NullableParameters
DEFAULT_NULLABLEFields inherited from interface dev.orne.test.rnd.params.SizeParameters
DEFAULT_MAX_SIZE, DEFAULT_MIN_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.MapGenerationParameters(@NotNull GenerationParameters copy) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the keys type.intReturns the maximum size.intReturns the minimum size.Returns the values type.inthashCode()voidsetKeysType(Type type) Sets the keys type.voidsetMaxSize(int value) Sets the maximum size.voidsetMinSize(int value) Sets the minimum size.voidsetValuesType(Type type) Sets the values type.@NotNull MapGenerationParameterswithKeysType(Type type) Sets the keys type.@NotNull MapGenerationParameterswithMaxSize(int value) Sets the maximum size.@NotNull MapGenerationParameterswithMinSize(int value) Sets the minimum size.@NotNull MapGenerationParameterswithNullable(boolean nullable) Sets if anullvalue is accepted.@NotNull MapGenerationParameterswithValuesType(Type type) Sets the values type.Methods inherited from class dev.orne.test.rnd.params.NullableParametersImpl
isNullable, setNullable, toString
-
Constructor Details
-
MapGenerationParameters
public MapGenerationParameters()Creates a new instance. -
MapGenerationParameters
Copy constructor.- Parameters:
copy- The instance to copy.
-
-
Method Details
-
withNullable
Sets if anullvalue is accepted.- Specified by:
withNullablein interfaceNullableParameters.Builder- Overrides:
withNullablein classNullableParametersImpl- Parameters:
nullable- If anullvalue is accepted.- Returns:
- This instance, for method chaining.
-
getKeysType
Returns the keys type.- Specified by:
getKeysTypein interfaceKeyValueGenericParameters- Returns:
- The keys type.
-
setKeysType
Sets the keys type.- Specified by:
setKeysTypein interfaceKeyValueGenericParameters- Parameters:
type- The keys type.
-
withKeysType
Sets the keys type.- Parameters:
type- The keys type.- Returns:
- This instance, for method chaining.
-
getValuesType
Returns the values type.- Specified by:
getValuesTypein interfaceKeyValueGenericParameters- Returns:
- The values type.
-
setValuesType
Sets the values type.- Specified by:
setValuesTypein interfaceKeyValueGenericParameters- Parameters:
type- The values type.
-
withValuesType
Sets the values type.- Parameters:
type- The values type.- Returns:
- This instance, for method chaining.
-
getMinSize
public int getMinSize()Returns the minimum size.- Specified by:
getMinSizein interfaceSizeParameters- Returns:
- The minimum size.
-
setMinSize
public void setMinSize(int value) Sets the minimum size.- Specified by:
setMinSizein interfaceSizeParameters- Parameters:
value- The minimum size.
-
withMinSize
Sets the minimum size.- Parameters:
value- The minimum size.- Returns:
- This instance, for method chaining.
-
getMaxSize
public int getMaxSize()Returns the maximum size.- Specified by:
getMaxSizein interfaceSizeParameters- Returns:
- The maximum size.
-
setMaxSize
public void setMaxSize(int value) Sets the maximum size.- Specified by:
setMaxSizein interfaceSizeParameters- Parameters:
value- The maximum size.
-
withMaxSize
Sets the maximum size.- Parameters:
value- The maximum size.- Returns:
- This instance, for method chaining.
-
hashCode
public int hashCode()- Overrides:
hashCodein classNullableParametersImpl
-
equals
- Overrides:
equalsin classNullableParametersImpl
-