Java TreeSet cvtListToTreeSet(List list)

Here you can find the source of cvtListToTreeSet(List list)

Description

cvt List To Tree Set

License

Open Source License

Declaration

public static TreeSet cvtListToTreeSet(List list) 

Method Source Code

//package com.java2s;

import java.util.Iterator;
import java.util.List;

import java.util.TreeSet;

public class Main {
    public static TreeSet cvtListToTreeSet(List list) {
        TreeSet treeSet = new TreeSet();
        if (treeSet != null) {
            Iterator iter = list.iterator();
            while (iter.hasNext()) {
                treeSet.add(iter.next());
            }//from  w w w  . j  a v  a2 s  .co m
        }
        return treeSet;
    }
}

Related

  1. buildTreeSet(Collection elements)
  2. changeComparator(TreeSet set, Comparator cmp)
  3. concatenate(TreeSet in)
  4. convertSpanToSparseGrid(final int curIx, final int span, final TreeSet indexes)
  5. createTreeSet(Iterable c)
  6. findSizedSubdirs(final String size, final TreeSet themeSubdirs)
  7. getDockInsets(final TreeSet set)
  8. getTreeSet(Collection collection)
  9. getTreeSet(final Object o, final Class classElement)