|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectm865.datastructures.StackAL.StackALIterator
An iterator for an ArrayList stack.
Constructor Summary | |
protected |
StackAL.StackALIterator(StackAL s)
Constructor for an StackAL iterator |
Method Summary | |
boolean |
hasNext()
Determines if there is an object in the stack that can be returned by next(). |
java.lang.Object |
next()
Returns the next object in stack, if there is one. |
void |
remove()
This method is an optional method of the Iterator interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected StackAL.StackALIterator(StackAL s)
s
- the stack for this iterator.Method Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |