private static Integer decodeInt ( String token ) { try { return Integer . decode ( token ) ; } catch ( NumberFormatException e ) { return null ; } }
Decodes an integer string representation and returns the associated Integer or null in case of an invalid number format .