Package org.rwtodd.args
Class ClampedIntParam
- All Implemented Interfaces:
OneArgParam,Param
-
Field Summary
Fields inherited from class org.rwtodd.args.BasicOneArgParam
arg, helpText, paramNames -
Constructor Summary
ConstructorsConstructorDescriptionClampedIntParam(Collection<String> names, Integer dflt, int min, int max, String help) -
Method Summary
Methods inherited from class org.rwtodd.args.IntParam
convertArgMethods inherited from class org.rwtodd.args.BasicOneArgParam
addHelp, addToMap, getValue, process
-
Constructor Details
-
ClampedIntParam
-
-
Method Details
-
validate
Description copied from class:BasicOneArgParamA validation method which subclasses can override to restrict the valid values of the argument.- Overrides:
validatein classBasicOneArgParam<Integer>- Parameters:
param- the name of the given parameter.arg- the argument to the parameter, as coverted byBasicOneArgParam.convertArg(String, String).- Returns:
- the validated arg, which doesn't have to mach the provided arg.
- Throws:
Exception- if the provided arg was invalid.
-