Modifier and Type | Method and Description |
---|---|
static <E> HashSet<E> |
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.Copyright © 2011–2023 Google. All rights reserved.