code: @Override
    public IVersion getMaximum()
    {
      Iterator<IVersionRange> it = ranges.iterator();
      IVersionRange r1 = it.next();
      IVersion max = r1.getMaximum();
  
      while (it.hasNext()) {
        IVersionRange r2 = it.next();
        IVersion v2 = r2.getMinimum();
        int cmp = max.compareTo(v2);
        if (cmp > 0) {
          return max = v2;
        }
      }
  
      return max;
    }
docs: /*
  (non-Javadoc)
  @see net.ossindex.version.impl.IVersionRange#getMaximum()