Class CallbackAccumulator<T>
java.lang.Object
ghidra.util.datastruct.CallbackAccumulator<T>
- Type Parameters:
T- the type of the item being accumulated
- All Implemented Interfaces:
Accumulator<T>, Consumer<T>
An implementation of
Accumulator that allows clients to easily process items as
they arrive.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAll(Collection<T> collection) intReturns the number of items that have been added to this accumulator.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Accumulator
accept
-
Constructor Details
-
CallbackAccumulator
-
-
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
-