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
ChangeModifier and TypeMethodDescriptionvoidvoidaddAll(Collection<T> collection) intReturns the number of items that have been added to this accumulator.REMOVEDbooleancontains(T t) RemovedREMOVEDCollection<T>get() RemovedREMOVEDIterator<T>iterator() RemovedREMOVEDintsize() RemovedMethods 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 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
-