|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.config.IntegerValidator
public class IntegerValidator
Base impl for Integer.
| Field Summary | |
|---|---|
static IValidator<Integer> |
DEFAULT
Allows all values. |
static IValidator<Integer> |
GT_ZERO
Only allows positive values (GT ZERO). |
static IValidator<Integer> |
GTE_ZERO
Only allows non-negative values (GTE ZERO). |
| Constructor Summary | |
|---|---|
IntegerValidator()
|
|
| Method Summary | |
|---|---|
void |
accept(String key,
String val,
Integer arg)
Accepts all values by default. |
Integer |
parse(String key,
String val)
Convert a value to an instance of the generic type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final transient IValidator<Integer> DEFAULT
public static final transient IValidator<Integer> GTE_ZERO
public static final transient IValidator<Integer> GT_ZERO
| Constructor Detail |
|---|
public IntegerValidator()
| Method Detail |
|---|
public Integer parse(String key,
String val)
IValidator
parse 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.
ConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||