code: public VersionRange range(final int... parts) {
      checkNotNull(parts);
      checkArgument(parts.length != 0);
  
      StringBuilder buff = new StringBuilder()
          .append("[");
  
      for (int i = 0; i < parts.length; i++) {
        buff.append(parts[i]);
        if (i + 1 < parts.length) {
          buff.append(".");
        }
      }
  
      buff.append(",");
  
      for (int i = 0; i < parts.length; i++) {
        if (i + 1 == parts.length) {
          buff.append(parts[i] + 1);
        }
        else {
          buff.append(parts[i])
              .append(".");
        }
      }
  
      buff.append(")");
  
      log.trace("Range pattern: {}", buff);
  
      return parseRange(buff.toString());
    }
docs: Builds a range between version parts and parts[n] + 1.
  
  ie. range(1,2,3) produces a range between versions 1.2.3 and 1.2.4.