Package dev.orne.test.rnd.params
Interface NumberParameters
- All Superinterfaces:
GenerationParameters
- All Known Subinterfaces:
NumberParameters.Builder
- All Known Implementing Classes:
NumberParametersImpl
@API(status=EXPERIMENTAL,
since="0.1")
public interface NumberParameters
extends GenerationParameters
Interface for number generation parameters.
Depending of the target number type to be generated the minimum of the parameters minimum value and the number type's minimum value will be used. Same way the maximum of the parameters maximum value and the number type's maximum value will be used.
- Since:
- 0.1
- Version:
- 1.0, 2022-11
- Author:
- (w) Iker Hernaez
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Interface forNumberParameters
builders. -
Field Summary
Fields -
Method Summary
-
Field Details
-
DEFAULT_MIN
The default minimum value. -
DEFAULT_MAX
The default maximum value.
-
-
Method Details
-
getMin
Returns the minimum (inclusive) value.- Returns:
- The minimum value.
-
setMin
Sets the minimum (inclusive) value.- Parameters:
value
- The minimum value.
-
getMax
Returns the maximum (inclusive) value.- Returns:
- The maximum value.
-
setMax
Sets the maximum (inclusive) value.- Parameters:
value
- The maximum value.
-