com.timeindexing.index
Class IndexIterator

java.lang.Object
  extended bycom.timeindexing.index.IndexIterator
All Implemented Interfaces:
java.util.Iterator

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

An iterator over the IndexItems in an Index.


Constructor Summary
protected IndexIterator(Index anIndex)
          Construct the Iterator given an Index.
 
Method Summary
 boolean hasNext()
          Does the Iterator have another element.
 java.lang.Object next()
          Get the next element.
 void remove()
          Remove an element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexIterator

protected IndexIterator(Index anIndex)
Construct the Iterator given an Index.

Method Detail

hasNext

public boolean hasNext()
Does the Iterator have another element.

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Get the next element.

Specified by:
next in interface java.util.Iterator
Returns:
null if it was not possible to get a particular IndexItem

remove

public void remove()
Remove an element. This is not supported, so an UnsupportedOperationExceptino is thrown

Specified by:
remove in interface java.util.Iterator