Class DoubleRangeValidatorBuilder
java.lang.Object
org.jboss.as.clustering.controller.validation.AbstractParameterValidatorBuilder
org.jboss.as.clustering.controller.validation.DoubleRangeValidatorBuilder
- All Implemented Interfaces:
ParameterValidatorBuilder
A builder for creating a range validator for
ModelType.DOUBLE parameters.- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.as.controller.operations.validation.ParameterValidatorbuild()Builds the validator.lowerBound(double value) Sets an inclusive lower bound of this validator.lowerBoundExclusive(double value) Sets an exclusive lower bound of this validator.upperBound(double value) Sets the inclusive upper bound of this validator.upperBoundExclusive(double value) Sets the exclusive upper bound of this validator.Methods inherited from class org.jboss.as.clustering.controller.validation.AbstractParameterValidatorBuilder
configure, configure
-
Constructor Details
-
DoubleRangeValidatorBuilder
public DoubleRangeValidatorBuilder()
-
-
Method Details
-
lowerBound
Sets an inclusive lower bound of this validator.- Parameters:
value- the lower bound
-
lowerBoundExclusive
Sets an exclusive lower bound of this validator.- Parameters:
value- the lower bound
-
upperBound
Sets the inclusive upper bound of this validator.- Parameters:
value- the upper bound
-
upperBoundExclusive
Sets the exclusive upper bound of this validator.- Parameters:
value- the upper bound
-
build
public org.jboss.as.controller.operations.validation.ParameterValidator build()Description copied from interface:ParameterValidatorBuilderBuilds the validator.- Returns:
- a parameter validator
-