public class Stack<T> extends Object implements Iterable<T>
Modifier and Type | Method and Description |
---|---|
boolean |
compare(Stack<T> s2) |
Stack<T> |
copy() |
boolean |
empty() |
T |
getTOS() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
T |
peek() |
T |
pop() |
T |
push(T e) |
Stack<T> |
shallowCopy() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public final boolean isEmpty()
public final boolean empty()
public final Stack<T> shallowCopy()