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