public final class Sets
extends java.lang.Object
Set
instances.
NOTE: this is a copy of a subset of Guava's com.google.common.collect.Sets
. The
implementation must match as closely as possible to Guava's implementation.
Modifier and Type | Method and Description |
---|---|
static <E> java.util.HashSet<E> |
newHashSet()
Returns a new mutable, empty
HashSet instance. |
static <E extends java.lang.Comparable<?>> |
newTreeSet()
Returns a new mutable, empty
TreeSet instance sorted by the natural sort ordering of
its elements. |
public static <E> java.util.HashSet<E> newHashSet()
HashSet
instance.public static <E extends java.lang.Comparable<?>> java.util.TreeSet<E> newTreeSet()
TreeSet
instance sorted by the natural sort ordering of
its elements.Copyright © 2011-2018 Google. All Rights Reserved.