Package dev.orne.test.rnd.params
Class SizeParametersImpl
java.lang.Object
dev.orne.test.rnd.params.SizeParametersImpl
- All Implemented Interfaces:
GenerationParameters
,SizeParameters
,SizeParameters.Builder
@API(status=EXPERIMENTAL,
since="0.1")
public class SizeParametersImpl
extends Object
implements SizeParameters, SizeParameters.Builder
The basic implementation of
SizeParameters
.- 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.SizeParameters
SizeParameters.Builder
-
Field Summary
Fields inherited from interface dev.orne.test.rnd.params.SizeParameters
DEFAULT_MAX_SIZE, DEFAULT_MIN_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor.SizeParametersImpl
(@NotNull GenerationParameters copy) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns the maximum size.int
Returns the minimum size.int
hashCode()
void
setMaxSize
(int value) Sets the maximum size.void
setMinSize
(int value) Sets the minimum size.toString()
@NotNull SizeParametersImpl
withMaxSize
(int value) Sets the maximum size.@NotNull SizeParametersImpl
withMinSize
(int value) Sets the minimum size.
-
Constructor Details
-
SizeParametersImpl
public SizeParametersImpl()Empty constructor. -
SizeParametersImpl
Copy constructor.- Parameters:
copy
- The instance to copy.
-
-
Method Details
-
getMinSize
public int getMinSize()Returns the minimum size.- Specified by:
getMinSize
in interfaceSizeParameters
- Returns:
- The minimum size.
-
setMinSize
public void setMinSize(int value) Sets the minimum size.- Specified by:
setMinSize
in interfaceSizeParameters
- Parameters:
value
- The minimum size.
-
withMinSize
Sets the minimum size.- Specified by:
withMinSize
in interfaceSizeParameters.Builder
- Parameters:
value
- The minimum size.- Returns:
- This instance, for method chaining.
-
getMaxSize
public int getMaxSize()Returns the maximum size.- Specified by:
getMaxSize
in interfaceSizeParameters
- Returns:
- The maximum size.
-
setMaxSize
public void setMaxSize(int value) Sets the maximum size.- Specified by:
setMaxSize
in interfaceSizeParameters
- Parameters:
value
- The maximum size.
-
withMaxSize
Sets the maximum size.- Specified by:
withMaxSize
in interfaceSizeParameters.Builder
- Parameters:
value
- The maximum size.- Returns:
- This instance, for method chaining.
-
hashCode
public int hashCode() -
equals
-
toString
-