org.crosswire.common.util
Class EmptyIterator<E>
java.lang.Object
org.crosswire.common.util.EmptyIterator<E>
- Type Parameters:
E
- The type of the element that this empty iterator will never return.
- All Implemented Interfaces:
- Iterator<E>
public class EmptyIterator<E>
- extends Object
- implements Iterator<E>
An EmptyIterator
is an Iterator
that iterates over
nothing.
- Author:
- DM Smith
- See Also:
The GNU Lesser General Public License for details.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmptyIterator
public EmptyIterator()
- Construct an
EmptyIterator
.
remove
public void remove()
- Specified by:
remove
in interface Iterator<E>
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<E>
next
public E next()
- Specified by:
next
in interface Iterator<E>