code: protected int readInteger(final String intString, final int min, final int max) {
          return Math.max(Math.min(Integer.parseInt(intString), max), min);
      }
docs: Read ab integer string value.
  
  @param intString the integer value
  @param min the minimum value allowed
  @param max the maximum value allowed
  
  @return the value parsed according to its range