Package ghidra.util.datastruct
Class SizeRestrictedAccumulatorWrapper<T>
java.lang.Object
ghidra.util.datastruct.SizeRestrictedAccumulatorWrapper<T>
- All Implemented Interfaces:
Accumulator<T>,Iterable<T>,Consumer<T>
-
Constructor Summary
ConstructorsConstructorDescriptionSizeRestrictedAccumulatorWrapper(Accumulator<T> accumulator, int maxSize) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.util.datastruct.Accumulator
accept, isEmpty, streamMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SizeRestrictedAccumulatorWrapper
Constructor.- Parameters:
accumulator- the accumulator to pass items tomaxSize- the maximum number of items this accumulator will hold
-
-
Method Details
-
iterator
-
add
- Specified by:
addin interfaceAccumulator<T>
-
addAll
- Specified by:
addAllin interfaceAccumulator<T>
-
contains
- Specified by:
containsin interfaceAccumulator<T>
-
get
- Specified by:
getin interfaceAccumulator<T>
-
size
public int size()- Specified by:
sizein interfaceAccumulator<T>
-