public static boolean valueOf ( String value ) { return ( value != null ) && ( value . trim ( ) . equalsIgnoreCase ( "true" ) || value . trim ( ) . equals ( "1" ) ) ; }
Determines if the specified string contains true or 1