Java SortedSet newSortedSet()

Here you can find the source of newSortedSet()

Description

new Sorted Set

License

Open Source License

Declaration

public static <T> SortedSet<T> newSortedSet() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Collection;

import java.util.SortedSet;

import java.util.TreeSet;

public class Main {
    public static <T> SortedSet<T> newSortedSet() {
        return new TreeSet<T>();
    }//from   ww w.  j  a v  a  2 s .co m

    public static <T> SortedSet<T> newSortedSet(Collection<? extends T> c) {
        return new TreeSet<T>(c);
    }
}

Related

  1. getSortedIntersectionValues(Collection colection1, Collection colection2)
  2. getSortedTypes(Class[] types)
  3. intersect(SortedSet pSet1, SortedSet pSet2)
  4. intersectSorted(final Collection c1, final Collection c2)
  5. mapToSortedSet(Map map)
  6. setDistance(SortedSet s1, SortedSet s2)
  7. setminus(SortedSet pSet1, SortedSet pSet2)
  8. sorted(Iterable input)
  9. sortedByValues(Map map, final boolean asc)