public static Integer toInteger ( String parameterValue ) { Integer result = null ; if ( isDigits ( parameterValue ) ) result = Integer . valueOf ( parameterValue ) ; return result ; }
Parses a parameter as an Integer . This is useful for working with query string parameters and path segments as numbers .