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 protected
CopyOnReadWeakSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T t)
Add the given object to the set.void
clear()
Remove all elements from this data structureboolean
contains(T t)
Returns true if the given object is in this data structureboolean
isEmpty()
Return whether this data structure is emptyjava.util.Iterator<T>
iterator()
Returns an iterator over the elements in this data structure.void
remove(T t)
Remove the given object from the data structureint
size()
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: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
-
-