Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 049070d3 authored by Evan Millar's avatar Evan Millar
Browse files

Add Sets#newSortedSet()

parent 5921fb51
Loading
Loading
Loading
Loading
+44 −35
Original line number Diff line number Diff line
@@ -68,6 +68,15 @@ public class Sets {
        return set;
    }

    /**
     * Creates an empty {@code SortedSet} instance.
     *
     * @return a newly-created, initially-empty {@code SortedSet}.
     */
    public static <E> SortedSet<E> newSortedSet() {
        return new TreeSet<E>();
    }

    /**
     * Creates a {@code SortedSet} instance containing the given elements.
     *