public static long parseLong ( final String str , final long def ) { final Long ret = parseLong ( str ) ; if ( ret == null ) { return def ; } else { return ret . longValue ( ) ; } }
Parses a long out of a string .