Package com.google.api.client.util
Class Sets
- java.lang.Object
-
- com.google.api.client.util.Sets
-
public final class Sets extends java.lang.ObjectStatic utility methods pertaining toSetinstances.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 Modifier Constructor Description privateSets()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> java.util.HashSet<E>newHashSet()Returns a new mutable, emptyHashSetinstance.static <E extends java.lang.Comparable<?>>
java.util.TreeSet<E>newTreeSet()Returns a new mutable, emptyTreeSetinstance sorted by the natural sort ordering of its elements.
-
-
-
Method Detail
-
newHashSet
public static <E> java.util.HashSet<E> newHashSet()
Returns a new mutable, emptyHashSetinstance.
-
newTreeSet
public static <E extends java.lang.Comparable<?>> java.util.TreeSet<E> newTreeSet()
Returns a new mutable, emptyTreeSetinstance sorted by the natural sort ordering of its elements.
-
-