default @SideEffectFree boolean isValidInteger(final int min, final int max) {
        try {
            final int parsedInteger = Integer.parseInt(this.peekString());
            return parsedInteger >= min && parsedInteger <= max;
        } catch (final NumberFormatException ignored) {
            return false;
        }
    }
Returns whether {@link #peekString()} contain a valid {@link Integer}
within the given range.

@param min the min value
@param max the max value
@return whether the input until the next whitespace contains a valid {@link Integer}
cloud-core/src/main/java/org/incendo/cloud/context/CommandInput.java