|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.config.LongValidator
public class LongValidator
Base impl for Long.
| Field Summary | |
|---|---|
static IValidator<Long> |
DEFAULT
Allows all values. |
static IValidator<Long> |
GT_ZERO
Only allows positive values (GT ZERO). |
static IValidator<Long> |
GTE_ZERO
Only allows non-negative values (GTE ZERO). |
| Constructor Summary | |
|---|---|
protected |
LongValidator()
|
| Method Summary | |
|---|---|
void |
accept(String key,
String val,
Long arg)
Accepts all values by default. |
Long |
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<Long> DEFAULT
public static final transient IValidator<Long> GTE_ZERO
public static final transient IValidator<Long> GT_ZERO
| Constructor Detail |
|---|
protected LongValidator()
| Method Detail |
|---|
public Long parse(String key,
String val)
IValidator
parse in interface IValidator<Long>key - The key.val - The value.
public void accept(String key,
String val,
Long arg)
throws ConfigurationException
accept in interface IValidator<Long>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 | |||||||||