Class ListAccumulator<T>
java.lang.Object
ghidra.util.datastruct.ListAccumulator<T>
- Type Parameters:
T- the type
- All Implemented Interfaces:
Accumulator<T>, Iterable<T>, Consumer<T>
An accumulator backed by a thread safe list. This class has methods to retrieve the data once
all loading has finished.
API uses of the accumulator are inherently multi-threaded. The list in this class is synchronized so that the data in the accumulator will be visible to the client thread.
-
Constructor Details
-
ListAccumulator
public ListAccumulator()
-
-
Method Details
-
add
- Specified by:
addin interfaceAccumulator<T>
-
addAll
- Specified by:
addAllin interfaceAccumulator<T>
-
getProgress
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
-
contains
-
get
-
asList
-
size
public int size() -
iterator
-
stream
-
toString
-