com.bigdata.config
Class LongRangeValidator
java.lang.Object
com.bigdata.config.LongValidator
com.bigdata.config.LongRangeValidator
- All Implemented Interfaces:
- IValidator<Long>
public class LongRangeValidator
- extends LongValidator
Variant that imposes a range constraint on the value.
- Version:
- $Id: LongRangeValidator.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
|
Method Summary |
void |
accept(String key,
String val,
Long arg)
Accepts all values in the range specified to the ctor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LongRangeValidator
public LongRangeValidator(long min,
long max)
accept
public void accept(String key,
String val,
Long arg)
throws ConfigurationException
- Accepts all values in the range specified to the ctor.
- Specified by:
accept in interface IValidator<Long>- Overrides:
accept in class LongValidator
- 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.