Class SetAccumulatorWrapper<T>
java.lang.Object
ghidra.util.datastruct.SetAccumulatorWrapper<T>
- Type Parameters:
T- the type
- All Implemented Interfaces:
Accumulator<T>, Consumer<T>
An accumulator that will only pass on unique items to the wrapped accumulator. This class uses
a concurrent set, which means that the data will be copied in this accumulator while it is being
used.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAll(Collection<T> collection) asSet()Returns the internal Set used by this class.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
-
SetAccumulatorWrapper
-
-
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
-
asSet
-