code: public static int parseInt (@Nullable final String sStr, @Nonnegative final int nRadix, final int nDefault)
    {
      if (sStr != null && sStr.length () > 0)
        try
        {
          return Integer.parseInt (sStr, nRadix);
        }
        catch (final NumberFormatException ex)
        {
          // Fall through
        }
      return nDefault;
    }
docs: Parse the given {@link String} as int with the specified radix.
  
  @param sStr
  The String to parse. May be <code>null</code>.
  @param nRadix
  The radix to use. Must be &ge; {@link Character#MIN_RADIX} and &le;
  {@link Character#MAX_RADIX}.
  @param nDefault
  The value to be returned if the string cannot be converted to a
  valid value.
  @return The passed default parameter if the string does not represent a
  valid value.