Package ghidra.util.datastruct
Class CopyOnReadWeakSet<T>
- java.lang.Object
-
- ghidra.util.datastruct.WeakSet<T>
-
- ghidra.util.datastruct.CopyOnReadWeakSet<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
public class CopyOnReadWeakSet<T> extends WeakSet<T>
-
-
Field Summary
-
Fields inherited from class ghidra.util.datastruct.WeakSet
weakHashStorage
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCopyOnReadWeakSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T t)Add the given object to the set.voidclear()Remove all elements from this data structurebooleancontains(T t)Returns true if the given object is in this data structurebooleanisEmpty()Return whether this data structure is emptyjava.util.Iterator<T>iterator()Returns an iterator over the elements in this data structure.voidremove(T t)Remove the given object from the data structureintsize()Return the number of objects contained within this data structurejava.util.Collection<T>values()Returns a Collection view of this set.-
Methods inherited from class ghidra.util.datastruct.WeakSet
maybeWarnAboutAnonymousValue, stream, toString
-
-
-
-
Method Detail
-
add
public void add(T t)
Add the given object to the set.
-
remove
public void remove(T t)
Remove the given object from the data structure
-
clear
public void clear()
Remove all elements from this data structure
-
iterator
public java.util.Iterator<T> iterator()
Returns an iterator over the elements in this data structure.
-
values
public java.util.Collection<T> 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
-
-