public class IntegerValidator extends Object implements IValidator<Integer>
Integer.| Modifier and Type | Field and Description | 
|---|---|
| static IValidator<Integer> | DEFAULTAllows all values. | 
| static IValidator<Integer> | GT_ZEROOnly allows positive values (GT ZERO). | 
| static IValidator<Integer> | GTE_ZEROOnly allows non-negative values (GTE ZERO). | 
| Constructor and Description | 
|---|
| IntegerValidator() | 
public static final transient IValidator<Integer> DEFAULT
public static final transient IValidator<Integer> GTE_ZERO
public static final transient IValidator<Integer> GT_ZERO
public Integer parse(String key, String val)
IValidatorparse in interface IValidator<Integer>key - The key.val - The value.public void accept(String key, String val, Integer arg) throws ConfigurationException
accept in interface IValidator<Integer>key - The key under which the value was discovered.val - The value.arg - The parsed value.ConfigurationExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.