de.unidu.is.util
Class EmptyIterator

java.lang.Object
  extended byde.unidu.is.util.EmptyIterator
All Implemented Interfaces:
java.util.Iterator

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

A iterator over an empty set.

Since:
2003-07-05
Version:
$Revision: 1.5 $, $Date: 2005/02/21 17:29:29 $
Author:
Henrik Nottelmann

Constructor Summary
EmptyIterator()
           
 
Method Summary
 boolean hasNext()
          Returns always false.
 java.lang.Object next()
          Always throws a NoSuchElementException.
 void remove()
          Removing objects is unsupported!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyIterator

public EmptyIterator()
Method Detail

hasNext

public boolean hasNext()
Returns always false.

Specified by:
hasNext in interface java.util.Iterator
Returns:
always false

next

public java.lang.Object next()
Always throws a NoSuchElementException.

Specified by:
next in interface java.util.Iterator
Returns:
nothing (an exception will be thrown)
Throws:
java.util.NoSuchElementException

remove

public void remove()
Removing objects is unsupported!

Specified by:
remove in interface java.util.Iterator