public static class ValueTypeImpl.NumberScanner extends Object implements ValueScanner<Double>
Double
. A hyphen ("-") is interpreted as Double.NaN.Constructor and Description |
---|
NumberScanner() |
Modifier and Type | Method and Description |
---|---|
void |
check(Double value)
Throw an exception if the value does not conform to
special restrictions enforced by the value scanner.
|
Class<Double> |
getType()
Return the class of underlying data type of the value scanner.
|
Double |
scan(String value)
Scan a string and convert it to an object of the scanner's actual type.
|
String |
toString(Double value)
Check and convert the parameter to a string.
|
public Class<Double> getType()
ValueScanner
getType
in interface ValueScanner<Double>
public void check(Double value)
ValueScanner
check
in interface ValueScanner<Double>
value
- a valuepublic Double scan(String value) throws T2DBException
ValueScanner
ValueScanner.check(Object)
.scan
in interface ValueScanner<Double>
value
- a stringT2DBException
public String toString(Double value)
ValueScanner
toString
in interface ValueScanner<Double>
value
- a valueCopyright © 2017. All rights reserved.