toBoolean()
Converts a
Java object to a Boolean object.
Syntax
Boolean toBoolean(Object objectData)
Boolean toBoolean(boolean booleanData)
Parameters
- objectData
- A Java object that you want to convert to Boolean. The only object currently supported is String.
- booleanData
- Any primitive boolean variable.
Return values
Returns a Boolean object.
Exceptions
DtpIncompatibleFormatException - If the source data type cannot be converted to Boolean.
Examples
Boolean MyBooleanObj = DtpDataConversion.toBoolean(MyStringObj);
See also
