Package pascal.taie.util.collection
Class Sets
java.lang.Object
pascal.taie.util.collection.Sets
Static utility methods for
Set
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> boolean
haveOverlap
(Set<E> s1, Set<E> s2) static <E> Set<E>
static <E> Set<E>
static <E> Set<E>
static <E> Set<E>
newHybridSet
(Collection<E> c) static <E> Set<E>
static <E extends Comparable<E>>
TreeSet<E>static <E> TreeSet<E>
newOrderedSet
(Comparator<? super E> comparator) static <E> Set<E>
newSet()
static <E> Set<E>
newSet
(int initialCapacity) static <E> Set<E>
newSet
(Collection<? extends E> set) static <E> Set<E>
-
Method Details
-
newSet
-
newSet
-
newLinkedSet
-
newSet
-
newOrderedSet
-
newOrderedSet
-
newSmallSet
-
newHybridSet
-
newHybridSet
-
newHybridOrderedSet
-
newConcurrentSet
-
haveOverlap
- Returns:
true
if two sets have at least one overlapped element.
-