jdsl
Class ArrayListIter

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--jdsl.ArrayListIter

public class ArrayListIter
extends java.util.ArrayList
implements java.util.Iterator

Inefficient but effective implementation of Iterator

See Also:
Iterator, Serialized Form

Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ArrayListIter()
           
 
Method Summary
 boolean hasNext()
           
 void insertLast(java.lang.Object element)
           
 java.lang.Object next()
           
 void printOutElements()
           
 void remove()
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayListIter

public ArrayListIter()
Method Detail

insertLast

public void insertLast(java.lang.Object element)

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Specified by:
next in interface java.util.Iterator

remove

public void remove()
            throws java.lang.UnsupportedOperationException,
                   java.lang.IllegalStateException
Specified by:
remove in interface java.util.Iterator

printOutElements

public void printOutElements()