com.croftsoft.core.util
Class NullIterator

java.lang.Object
  extended by com.croftsoft.core.util.NullIterator
All Implemented Interfaces:
Iterator

public final class NullIterator
extends Object
implements Iterator

A singleton null object Iterator implementation.

Since:
2003-05-10
Version:
2003-05-12
Author:
David Wallace Croft

Field Summary
static NullIterator INSTANCE
           
 
Method Summary
 boolean hasNext()
           
 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 NullIterator INSTANCE
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)