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 TypeMethodDescriptionvoidAdd the given object to the set.voidclear()Remove all elements from this data structurebooleanReturns true if the given object is in this data structurebooleanisEmpty()Return whether this data structure is emptyiterator()Returns an iterator over the elements in this data structure.voidRemove the given object from the data structureintsize()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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:WeakSetReturns a Collection view of this set. The returned Collection is backed by this set. -
isEmpty
public boolean isEmpty()Description copied from class:WeakSetReturn whether this data structure is empty -
size
public int size()Description copied from class:WeakSetReturn the number of objects contained within this data structure -
contains
Description copied from class:WeakSetReturns true if the given object is in this data structure
-