public static Boolean parseBoolean ( String value ) throws ParseException { Boolean result = null ; Integer number = parseInteger ( value ) ; if ( number != null ) { result = number . intValue ( ) == 0 ? Boolean . FALSE : Boolean . TRUE ; } return result ; }
Parse a string representation of a Boolean value .