Package ghidra.util.datastruct
Class CopyOnReadWeakSet<T>
java.lang.Object
ghidra.util.datastruct.WeakSet<T>
ghidra.util.datastruct.CopyOnReadWeakSet<T>
- All Implemented Interfaces:
Iterable<T>
-
Field Summary
Fields inherited from class ghidra.util.datastruct.WeakSet
weakHashStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the given object to the set.void
clear()
Remove all elements from this data structureboolean
Returns true if the given object is in this data structureboolean
isEmpty()
Return whether this data structure is emptyiterator()
Returns an iterator over the elements in this data structure.void
Remove the given object from the data structureint
size()
Return the number of objects contained within this data structurevalues()
Returns a Collection view of this set.Methods inherited from class ghidra.util.datastruct.WeakSet
addAll, maybeWarnAboutAnonymousValue, stream, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CopyOnReadWeakSet
protected CopyOnReadWeakSet()
-
-
Method Details
-
add
Add the given object to the set. -
remove
Remove the given object from the data structure -
clear
public void clear()Remove all elements from this data structure -
iterator
Returns an iterator over the elements in this data structure. -
values
Description copied from class:WeakSet
Returns a Collection view of this set. The returned Collection is backed by this set. -
isEmpty
public boolean isEmpty()Description copied from class:WeakSet
Return whether this data structure is empty -
size
public int size()Description copied from class:WeakSet
Return the number of objects contained within this data structure -
contains
Description copied from class:WeakSet
Returns true if the given object is in this data structure
-