com.bigdata.config
Class LongRangeValidator

java.lang.Object
  extended by com.bigdata.config.LongValidator
      extended by 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

Field Summary
 
Fields inherited from class com.bigdata.config.LongValidator
DEFAULT, GT_ZERO, GTE_ZERO
 
Constructor Summary
LongRangeValidator(long min, long max)
           
 
Method Summary
 void accept(String key, String val, Long arg)
          Accepts all values in the range specified to the ctor.
 
Methods inherited from class com.bigdata.config.LongValidator
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongRangeValidator

public LongRangeValidator(long min,
                          long max)
Method Detail

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.