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
ConstructorsConstructorDescriptionFixedSizeStack(int maxSize) Creates a fixed size stack with the specified max size. -
Method Summary
Methods inherited from class Stack
clear, equals, get, hashCode, isEmpty, iterator, peek, pop, search, size, stream, toStringMethods inherited from interface 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
-
push
-
add
-
remove
-