List of utility methods to do Iterator to SortedSet Convert
SortedSet | sortedSetFromIterator(Iterator Constructs a SortedSet<T> with all the elements available from i SortedSet<T> retval = new TreeSet<T>(); while (i.hasNext()) retval.add(i.next()); return retval; |