Package pascal.taie.util.collection
Interface SetEx<E>
- Type Parameters:
E
- type of elements in this set
- All Superinterfaces:
Collection<E>
,Copyable<SetEx<E>>
,Iterable<E>
,Set<E>
- All Known Implementing Classes:
AbstractHybridSet
,AbstractSetEx
,ArraySet
,GenericBitSet
,HybridBitSet
,HybridHashSet
,HybridIndexableSet
,HybridLinkedHashSet
,IndexableSet
,IndexerBitSet
This interface extends
Set
to provide more useful APIs.-
Method Summary
Modifier and TypeMethodDescriptionaddAllDiff
(Collection<? extends E> c) Adds all elements in collectionc
, and returns the difference set betweenc
and this set (before the call).boolean
hasOverlapWith
(Set<E> other) Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Method Details
-
addAllDiff
Adds all elements in collectionc
, and returns the difference set betweenc
and this set (before the call).- Returns:
- a set of elements that are contained in
c
but not in this set before the call.
-
hasOverlapWith
- Returns:
true
if this set has at least one element contained in the given set.
-