T
- public abstract class StackSecondary<T> extends java.lang.Object implements Stack<T>
Constructor and Description |
---|
StackSecondary() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(T entry)
Reports whether
entry is in this . |
boolean |
equals(java.lang.Object o) |
void |
flip()
Reverses the order of the entries in
this . |
int |
hashCode() |
T |
swapTop(T entry)
Replaces the entry at the top of
this with entry |
T |
top()
Returns a reference to, but does not remove, the top of
this . |
java.lang.String |
toString() |
pop, push, size
clear, newInstance, transferFrom
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean contains(T entry)
Stack
entry
is in this
.public void flip()
Stack
this
.public T swapTop(T entry)
Stack
this
with entry