Provides unchecked access to an element in the stack.
Provides unchecked access to an element in the stack.
The access is unchecked in the sense that we do not make sure the element is not outside the current range of the stack, and could return a random value if it is bigger than this.size but smaller than maxSize.
the index of the element in the stack, starting at 0
Provides checked access to an element in the stack.
Provides checked access to an element in the stack.
Will throw an exception if the element is outside the actual content of the stack.
the index of the element in the stack, starting at 0
Implements a stack of Int of fixed maximum size.
This is an efficient data structure for representing the trail in a SAT solver. Though it can be used to represent a stack of Int with a fixed maximum size.
IllegalArgumentException
if maxSize < 0