public Float getFloat ( String name ) { Object o = get ( name ) ; if ( o instanceof Number ) { return ( ( Number ) o ) . floatValue ( ) ; } if ( o != null ) { try { String string = o . toString ( ) ; if ( string != null ) { return Float . parseFloat ( string ) ; } } catch ( NumberFormatException e ) { } } return null ; }
Helper method for obtaining float value from parameter