org.japano.util
Class EmptyIterator

java.lang.Object
  extended by org.japano.util.EmptyIterator
All Implemented Interfaces:
java.util.Iterator

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

Implements an Enumeration which is always empty.

Version:
$Id: EmptyIterator.java,v 1.2 2005/09/27 21:30:51 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Field Summary
static EmptyIterator instance
          The only EmptyIterator instance
 
Method Summary
 boolean hasNext()
          Returns always false.
 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

instance

public static final EmptyIterator instance
The only EmptyIterator instance

Method Detail

hasNext

public boolean hasNext()
Returns always false.

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