Package ghidra.util.datastruct
Class FixedSizeStack<E>
- java.lang.Object
-
- ghidra.util.datastruct.Stack<E>
-
- ghidra.util.datastruct.FixedSizeStack<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
public class FixedSizeStack<E> extends Stack<E>
Creates a fixed size stack. The oldest (or deepest) item on the stack will be removed when the max size is achieved.
-
-
Constructor Summary
Constructors Constructor Description FixedSizeStack(int maxSize)
Creates a fixed size stack with the specified max size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(E item)
Appends the given item to the top of the stack.E
push(E item)
Pushes an item onto the top of this stack.E
remove(int index)
-
Methods inherited from class ghidra.util.datastruct.Stack
clear, equals, get, hashCode, isEmpty, iterator, peek, pop, search, size, stream, toString
-
-