public class LongValidator extends Object implements IValidator<Long>
Long
.Modifier and Type | Field and Description |
---|---|
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).
|
Modifier | Constructor and Description |
---|---|
protected |
LongValidator() |
public static final transient IValidator<Long> DEFAULT
public static final transient IValidator<Long> GTE_ZERO
public static final transient IValidator<Long> GT_ZERO
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
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.