diva.util
Class NullIterator

java.lang.Object
  extended bydiva.util.IteratorAdapter
      extended bydiva.util.NullIterator
All Implemented Interfaces:
java.util.Iterator

public class NullIterator
extends IteratorAdapter

An iterator over nothing.

Version:
$Id: NullIterator.java,v 1.7 2004/04/13 18:49:09 cxh Exp $
Author:
John Reekie, Michael Shilman

Constructor Summary
NullIterator()
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 
Methods inherited from class diva.util.IteratorAdapter
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullIterator

public NullIterator()
Method Detail

hasNext

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

next

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