public static Double isDouble ( String value ) { Validate . notNull ( value ) ; Validate . notEmpty ( value ) ; Double doubleValue = null ; try { doubleValue = Double . parseDouble ( value ) ; } catch ( NumberFormatException e ) { throw new TypeException ( "Double" ) ; } return doubleValue ; }
Checks if the given String is a double value .