Package com.google.api.client.util
Class Sets
java.lang.Object
com.google.api.client.util.Sets
Static utility methods pertaining to
Set
instances.
NOTE: this is a copy of a subset of Guava's Sets
. The
implementation must match as closely as possible to Guava's implementation.
- Since:
- 1.14
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> HashSet
<E> Returns a new mutable, emptyHashSet
instance.static <E extends Comparable<?>>
TreeSet<E> Returns a new mutable, emptyTreeSet
instance sorted by the natural sort ordering of its elements.
-
Constructor Details
-
Sets
private Sets()
-
-
Method Details
-
newHashSet
Returns a new mutable, emptyHashSet
instance. -
newTreeSet
Returns a new mutable, emptyTreeSet
instance sorted by the natural sort ordering of its elements.
-