code: public static boolean isValidInt(@Nullable final String integerStr, final int lowerBound, final int upperBound, final boolean includeLowerBound, final boolean includeUpperBound) {
          if (lowerBound > upperBound) {
              throw new IllegalArgumentException(ExceptionValues.INVALID_BOUNDS);
          } else if (!isValidInt(integerStr)) {
              return false;
          }
          final int aInteger = toInteger(integerStr);
          final boolean respectsLowerBound = includeLowerBound ? lowerBound <= aInteger : lowerBound < aInteger;
          final boolean respectsUpperBound = includeUpperBound ? aInteger <= upperBound : aInteger < upperBound;
          return respectsLowerBound && respectsUpperBound;
      }
docs: Given an integer string, it checks if it's a valid integer (base on apaches NumberUtils.createInteger) and if
  it's between the lowerBound and upperBound.
  
  @param integerStr        the integer string to check
  @param lowerBound        the lower bound of the interval
  @param upperBound        the upper bound of the interval
  @param includeLowerBound boolean if to include the lower bound of the interval
  @param includeUpperBound boolean if to include the upper bound of the interval
  @return true if the integer string is valid and in between the lowerBound and upperBound, false otherwise
  @throws IllegalArgumentException if the lowerBound is not less than the upperBound