returns value as a positive integer , or 0 if it is negative , or defaultvalue ifit can not be parsed . concode_field_sep String QUOTED_STRING concode_elem_sep String TOKEN concode_elem_sep Pattern PARAMETER concode_field_sep Set<String> varyFields concode_elem_sep Set<String> varyFields concode_elem_sep Headers varyHeaders concode_elem_sep Headers varyHeaders concode_elem_sep boolean hasVaryAll concode_elem_sep boolean hasVaryAll concode_elem_sep int skipUntil concode_elem_sep long stringToLong concode_elem_sep void receiveHeaders concode_elem_sep long contentLength concode_elem_sep long contentLength concode_elem_sep boolean varyMatches concode_elem_sep List<Challenge> parseChallenges concode_elem_sep boolean hasBody concode_elem_sep int skipWhitespace
int function ( String arg0 , int arg1 ) { try { long loc0 = Long . parseLong ( arg0 ) ; if ( loc0 > Integer . MAX_VALUE ) { return Integer . MAX_VALUE ; } else if ( loc0 < 0 ) { return 0 ; } else { return ( int ) loc0 ; } } catch ( NumberFormatException loc0 ) { return arg1 ; } }