T - element typestatic class CopierFStackImpl.Empty<T> extends java.lang.Object implements FStack<T>
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<T> |
bottomToTop()
Get an iterable from this stack which is ordered from bottom to top.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
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.
|
FStack<T> |
reversed()
Get this stack, but in reversed order.
|
int |
size()
Get the size.
|
T |
top()
Get the top element of the stack.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitareEqual, areEqual, empty, empty, emptyCopyable, from, from, fromCopyable, iterator, pushAll, reverseFrom, reverseFrom, reverseFromCopyable, reversePushAll@NotNull public FStack<T> push(T elem)
FStackFStack.top().@NotNull public FStack<T> pop()
FStack@NotNull public java.lang.Iterable<T> bottomToTop()
FStackbottomToTop in interface FStack<T>FStack.reversed()@NotNull public FStack<T> reversed()
FStackpublic boolean isEmpty()
FStackFStack.top() and FStack.pop() are not allowed and
will result in EmptyStackExceptionspublic int size()
Sizeablepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object