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()
ValueScannergetType in interface ValueScanner<Double>public void check(Double value)
ValueScannercheck in interface ValueScanner<Double>value - a valuepublic Double scan(String value) throws T2DBException
ValueScannerValueScanner.check(Object).scan in interface ValueScanner<Double>value - a stringT2DBExceptionpublic String toString(Double value)
ValueScannertoString in interface ValueScanner<Double>value - a valueCopyright © 2017. All rights reserved.