Interface VariableValueParameters.NumberRangeBuilder<T extends Number>
- Type Parameters:
T
- TheNumber
type
- All Superinterfaces:
AbstractBuilder<ValueParameter<T>>
,Builder<ValueParameter<T>,
,VariableValueParameters.NumberRangeBuilder<T>> ResettableBuilder<ValueParameter<T>,
VariableValueParameters.NumberRangeBuilder<T>>
- Enclosing class:
- VariableValueParameters
public static interface VariableValueParameters.NumberRangeBuilder<T extends Number>
extends Builder<ValueParameter<T>,VariableValueParameters.NumberRangeBuilder<T>>
A builder that creates a parameter that can parse a bounded
Number
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Tests for validity and creates thisValueParameter
.Sets the maximum value that the parser will parse.Sets the minimum value that the parser will parse.
-
Method Details
-
min
Sets the minimum value that the parser will parse.Defaults to the minimum allowable value for
VariableValueParameters.NumberRangeBuilder
- Parameters:
min
- The minimum value- Returns:
- This builder, for chaining
-
max
Sets the maximum value that the parser will parse.Defaults to the maximum allowable value for
VariableValueParameters.NumberRangeBuilder
- Parameters:
max
- The maximum value- Returns:
- This builder, for chaining
-
build
ValueParameter<T> build()Tests for validity and creates thisValueParameter
.- Specified by:
build
in interfaceAbstractBuilder<T extends Number>
- Returns:
- The
ValueParameter
- Throws:
IllegalStateException
- if the minimum is greater than the maximum
-