private boolean isValidAttrValue ( String value ) { final float parseFloat ; try { parseFloat = Float . parseFloat ( value ) ; } catch ( NumberFormatException e ) { return false ; } return parseFloat >= 1 ; }
Check if the value is a float > = 1