org.jcoderz.commons.util
Class EmptyIterator

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

public final class EmptyIterator
extends Object
implements Iterator

An empty iterator that is just empty.

Author:
Andreas Mandel

Field Summary
static Iterator EMPTY_ITERATOR
          The constant no state EmptyIterator.
 
Method Summary
 boolean hasNext()
           Always returns false.
 Object next()
          
 void remove()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ITERATOR

public static final Iterator EMPTY_ITERATOR
The constant no state EmptyIterator.

Method Detail

remove

public void remove()
            throws IllegalStateException

Specified by:
remove in interface Iterator
Throws:
IllegalStateException - always.

hasNext

public boolean hasNext()
Always returns false.

Specified by:
hasNext in interface Iterator

next

public Object next()
            throws NoSuchElementException

Specified by:
next in interface Iterator
Throws:
NoSuchElementException - always.


Copyright 2007 The jCoderZ Project.