| Modifier and Type | Method and Description |
|---|---|
static <E> HashSet |
newHashSet()
Returns a new mutable, empty
HashSet instance.
|
static <E extends Comparable |
newTreeSet()
Returns a new mutable, empty
TreeSet instance sorted by the natural sort ordering of its elements.
|
public static <E> HashSet<E> newHashSet()
HashSet instance.
public static <E extends Comparable<?>> TreeSet <E> newTreeSet()
TreeSet instance sorted by the natural sort ordering of its elements.