Interface VariableValueParameters.NumberRangeBuilder<T extends Number>
- Type Parameters:
- T- The- Numbertype
- 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 SummaryModifier 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- 
minSets 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
 
- 
maxSets 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
 
- 
buildValueParameter<T> build()Tests for validity and creates thisValueParameter.- Specified by:
- buildin interface- AbstractBuilder<T extends Number>
- Returns:
- The ValueParameter
- Throws:
- IllegalStateException- if the minimum is greater than the maximum
 
 
-