Class SetAccumulator<T>
java.lang.Object
ghidra.util.datastruct.SetAccumulator<T>
- Type Parameters:
T- the type
- All Implemented Interfaces:
Accumulator<T>, Iterable<T>, Consumer<T>
An accumulator backed by a thread safe set. This class has methods to retrieve the data once all
loading has finished.
API uses of the accumulator are inherently multi-threaded. The set in this class is synchronized so that the data in the accumulator will be visible to the client thread.
-
Constructor Details
-
SetAccumulator
public SetAccumulator()
-
-
Method Details
-
add
- Specified by:
addin interfaceAccumulator<T>
-
addAll
- Specified by:
addAllin interfaceAccumulator<T>
-
contains
-
get
-
asSet
-
getProgress NEW
public int getProgress()Description copied from interface:AccumulatorReturns the number of items that have been added to this accumulator.- Specified by:
getProgressin interfaceAccumulator<T>- Returns:
- the number of items that have been added to this accumulator
-
size
public int size() -
iterator
-
stream NEW
-
toString
-