com.bigdata.config
Class IntegerRangeValidator
java.lang.Object
com.bigdata.config.IntegerValidator
com.bigdata.config.IntegerRangeValidator
- All Implemented Interfaces:
- IValidator<Integer>
public class IntegerRangeValidator
- extends IntegerValidator
Variant that imposes a range constraint on the value.
- Version:
- $Id: IntegerRangeValidator.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerRangeValidator
public IntegerRangeValidator(int min,
int max)
accept
public void accept(String key,
String val,
Integer arg)
throws ConfigurationException
- Accepts all values in the range specified to the ctor.
- Specified by:
accept in interface IValidator<Integer>- Overrides:
accept in class IntegerValidator
- Parameters:
key - The key under which the value was discovered.val - The value.arg - The parsed value.
- Throws:
ConfigurationException
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.