public static long getLong ( String pStr ) { if ( isEmpty ( pStr ) ) { return 0 ; } long value = 0 ; try { value = Long . parseLong ( pStr ) ; } catch ( NumberFormatException nm ) { } return value ; }
Returns the parsed long value for the passed in String .