T
- element typeclass CopierFStackImpl<T> extends java.lang.Object implements FStack<T>
See FStack
for more information.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CopierFStackImpl.Empty<T>
Empty copier stack implementation.
|
Constructor and Description |
---|
CopierFStackImpl(Copier<T> copier,
T element,
FStack<T> tail)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty()
Is this stack empty?
|
FStack<T> |
pop()
Pop the stack.
|
FStack<T> |
push(T elem)
Push an element to the top of the stack.
|
int |
size()
Get the size of this stack.
|
T |
top()
Get the top element of the stack.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
empty, empty, emptyCopyable, from, from, fromCopyable, iterator, pushAll, reverseFrom, reverseFrom, reverseFromCopyable, reversePushAll
@NotNull public FStack<T> push(T elem)
FStack
FStack.top()
.@NotNull public FStack<T> pop()
FStack
public boolean isEmpty()
FStack
FStack.top()
and FStack.pop()
are not allowed and
will result in EmptyStackException
s