Package pascal.taie.util.collection
Class HybridLinkedHashSet<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.HybridLinkedHashSet<E>
- All Implemented Interfaces:
Serializable
,Iterable<E>
,Collection<E>
,Set<E>
,SetEx<E>
,Copyable<SetEx<E>>
Hybrid set that uses linked hash set for large set.
- See Also:
-
Field Summary
Fields inherited from class pascal.taie.util.collection.AbstractHybridSet
isLargeSet, set, singleton
-
Constructor Summary
-
Method Summary
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
addAllDiff, copy, hasOverlapWith
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
-
HybridLinkedHashSet
public HybridLinkedHashSet()
-
-
Method Details
-
newLargeSet
Description copied from class:AbstractHybridSet
Creates a large set.- Specified by:
newLargeSet
in classAbstractHybridSet<E>
- Parameters:
initialCapacity
- initial capacity of the resulting set.
-
newSet
Description copied from class:AbstractSetEx
Creates and returns a new set. The type of the new set should be the corresponding subclass. This method is provided to ease the implementation ofAbstractSetEx.copy()
andAbstractSetEx.addAllDiff(Collection)
. If a subclass overwrites above two methods, it does not need to re-implement this method.- Overrides:
newSet
in classAbstractSetEx<E>
-