code: public static int toInteger(@Nullable final String integerStr, final int defaultInteger) {
          return StringUtils.isNoneEmpty(integerStr) ? toInteger(integerStr) : defaultInteger;
      }
docs: If the integer string is null or empty, it returns the defaultInteger otherwise it returns the integer value (see toInteger)
  
  @param integerStr     the integer to convert
  @param defaultInteger the default value if the integerStr is null or the empty string
  @return the integer value of the string or the defaultInteger is the integer string is empty
  @throws IllegalArgumentException if the passed integer string is not a valid integer