|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--asd_library.stack.Stack
Implementation of the abstract data type stack
Constructor Summary | |
Stack()
|
Method Summary | |
java.lang.Object |
clone()
Returns a shallow copy of this Stack. |
boolean |
equals(Stack s)
Compares the specified object with this stack for equality. |
boolean |
isEmpty()
Verifies if the stack is empty. |
java.util.ListIterator |
listIterator()
Returns a list-iterator of the elements in this queue (in proper sequence) |
java.lang.Object |
pop()
Retrieves an item and deletes it from the stack. |
void |
push(java.lang.Object el)
Stores an item on the stack. |
java.lang.Object |
top()
Retrieves the item from the stack head but doesn't remove it. |
java.lang.String |
toString()
Returns a string representation of the stack. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Stack()
Method Detail |
public boolean isEmpty()
isEmpty
in interface Stack_adt
public java.lang.Object top()
top
in interface Stack_adt
public java.lang.Object pop()
pop
in interface Stack_adt
public void push(java.lang.Object el)
push
in interface Stack_adt
el
- the object to store.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(Stack s)
public java.util.ListIterator listIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |