Package pascal.taie.util.collection
Class HybridBitSet<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
pascal.taie.util.collection.AbstractSetEx<E>
pascal.taie.util.collection.AbstractHybridSet<E>
pascal.taie.util.collection.HybridBitSet<E>
- All Implemented Interfaces:
Serializable
,Iterable<E>
,Collection<E>
,Set<E>
,SetEx<E>
,Copyable<SetEx<E>>
Hybrid set that uses bit set for large set.
- See Also:
-
Field Summary
Fields inherited from class pascal.taie.util.collection.AbstractHybridSet
isLargeSet, set, singleton
-
Constructor Summary
-
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).copy()
Creates and returns a copy of this object.newLargeSet
(int unused) Creates a large set.Methods inherited from class pascal.taie.util.collection.AbstractHybridSet
add, addAll, clear, contains, containsAll, equals, getThreshold, hashCode, isEmpty, iterator, newSmallSet, remove, removeAll, retainAll, size, toArray, toArray
Methods inherited from class pascal.taie.util.collection.AbstractSetEx
hasOverlapWith, newSet
Methods inherited from class java.util.AbstractCollection
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
spliterator
-
Constructor Details
-
HybridBitSet
-
-
Method Details
-
newLargeSet
Description copied from class:AbstractHybridSet
Creates a large set.- Specified by:
newLargeSet
in classAbstractHybridSet<E>
- Parameters:
unused
- initial capacity of the resulting set.
-
addAllDiff
Description copied from interface:SetEx
Adds all elements in collectionc
, and returns the difference set betweenc
and this set (before the call).- Specified by:
addAllDiff
in interfaceSetEx<E>
- Overrides:
addAllDiff
in classAbstractSetEx<E>
- Returns:
- a set of elements that are contained in
c
but not in this set before the call.
-
copy
Description copied from interface:Copyable
Creates and returns a copy of this object.
-