push
Pushes the given item onto the top of this stack.
If this stack's size is already equal to maxSize, an exception will be thrown.
If this stack's size is already equal to capacity, the stack's underlying data container will be resized to accommodate new values by the configured scaling factor.
Parameters
value
Value to push onto the top of the stack.
Throws
If pushing a new element onto this stack would increase it's size to be greater than maxSize.