uwcse.collections
Class SimpleArrayList.ArrayListIterator

java.lang.Object
  |
  +--uwcse.collections.SimpleArrayList.ArrayListIterator
All Implemented Interfaces:
SimpleIterator
Enclosing class:
SimpleArrayList

class SimpleArrayList.ArrayListIterator
extends java.lang.Object
implements SimpleIterator


Field Summary
(package private)  int current
           
 
Constructor Summary
(package private) SimpleArrayList.ArrayListIterator()
           
 
Method Summary
 boolean hasNext()
          Answer true iff there are more items to access.
 java.lang.Object next()
          Answer the current item AND advance the iterator to the next item.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

current

int current
Constructor Detail

SimpleArrayList.ArrayListIterator

SimpleArrayList.ArrayListIterator()
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: SimpleIterator
Answer true iff there are more items to access.
Specified by:
hasNext in interface SimpleIterator

next

public java.lang.Object next()
Description copied from interface: SimpleIterator
Answer the current item AND advance the iterator to the next item.
Specified by:
next in interface SimpleIterator