Package dev.orne.test.rnd.params
Class NumberParametersImpl
java.lang.Object
dev.orne.test.rnd.params.NumberParametersImpl
- All Implemented Interfaces:
GenerationParameters
,NumberParameters
,NumberParameters.Builder
@API(status=EXPERIMENTAL,
since="0.1")
public class NumberParametersImpl
extends Object
implements NumberParameters, NumberParameters.Builder
The basic implementation of
NumberParameters
.- 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.NumberParameters
NumberParameters.Builder
-
Field Summary
Fields inherited from interface dev.orne.test.rnd.params.NumberParameters
DEFAULT_MAX, DEFAULT_MIN
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor.NumberParametersImpl
(@NotNull GenerationParameters copy) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
@NotNull Number
getMax()
Returns the maximum (inclusive) value.@NotNull Number
getMin()
Returns the minimum (inclusive) value.int
hashCode()
void
Sets the maximum (inclusive) value.void
Sets the minimum (inclusive) value.toString()
@NotNull NumberParametersImpl
Sets the maximum (inclusive) value.@NotNull NumberParametersImpl
Sets the minimum (inclusive) value.
-
Constructor Details
-
NumberParametersImpl
public NumberParametersImpl()Empty constructor. -
NumberParametersImpl
Copy constructor.- Parameters:
copy
- The instance to copy.
-
-
Method Details
-
getMin
Returns the minimum (inclusive) value.- Specified by:
getMin
in interfaceNumberParameters
- Returns:
- The minimum value.
-
setMin
Sets the minimum (inclusive) value.- Specified by:
setMin
in interfaceNumberParameters
- Parameters:
value
- The minimum value.
-
withMin
Sets the minimum (inclusive) value.- Specified by:
withMin
in interfaceNumberParameters.Builder
- Parameters:
value
- The minimum value.- Returns:
- This instance, for method chaining.
-
getMax
Returns the maximum (inclusive) value.- Specified by:
getMax
in interfaceNumberParameters
- Returns:
- The maximum value.
-
setMax
Sets the maximum (inclusive) value.- Specified by:
setMax
in interfaceNumberParameters
- Parameters:
value
- The maximum value.
-
withMax
Sets the maximum (inclusive) value.- Specified by:
withMax
in interfaceNumberParameters.Builder
- Parameters:
value
- The maximum value.- Returns:
- This instance, for method chaining.
-
hashCode
public int hashCode() -
equals
-
toString
-