ix.util.lisp
Class LListIterator

java.lang.Object
  extended by ix.util.lisp.LListIterator
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
LListListIterator

public class LListIterator
extends java.lang.Object
implements java.util.Iterator

An implementation of Iterator for LLists.


Field Summary
protected  LList at
           
 
Constructor Summary
LListIterator(LList list)
           
LListIterator(LListIterator i)
           
 
Method Summary
 LList getTail()
          Returns the tail of the list that corresponds to the iterator's current position.
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

at

protected LList at
Constructor Detail

LListIterator

public LListIterator(LList list)

LListIterator

public LListIterator(LListIterator i)
Method Detail

getTail

public LList getTail()
Returns the tail of the list that corresponds to the iterator's current position. If the tail is not empty, its first element is the object that would be returned by the next call to the iterator's next() method.


hasNext

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

next

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

remove

public void remove()
Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException - if called.