Jacson

de.spieleck.util
Class EmptyIterator

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

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

Convenicence class to provide an empty implementation of the Iterator Interface. This is a Singleton.

Version:
1.0
Author:
fsn

Field Summary
protected static java.util.Iterator mySelf
          This is a Singleton.
 
Method Summary
static java.util.Iterator getInstance()
           
 boolean hasNext()
           
 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

mySelf

protected static java.util.Iterator mySelf
This is a Singleton.

Method Detail

getInstance

public static java.util.Iterator getInstance()

hasNext

public boolean hasNext()
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

Spieleck

Copyleft 2002 spieleck.de.