Package ghidra.util.datastruct
Class FixedSizeStack<E>
java.lang.Object
ghidra.util.datastruct.Stack<E>
ghidra.util.datastruct.FixedSizeStack<E>
- All Implemented Interfaces:
Iterable<E>
Creates a fixed size stack.
The oldest (or deepest) item on the stack
will be removed when the max size is achieved.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFixedSizeStack
(int maxSize) Creates a fixed size stack with the specified max size. -
Method Summary
Methods inherited from class ghidra.util.datastruct.Stack
clear, equals, get, hashCode, isEmpty, iterator, peek, pop, search, size, stream, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FixedSizeStack
public FixedSizeStack(int maxSize) Creates a fixed size stack with the specified max size.- Parameters:
maxSize
- the max size of the stack
-
-
Method Details