java.lang.Object
org.jdaemon.util.iterator.EmptyIterator
- All Implemented Interfaces:
- java.util.Iterator
- public class EmptyIterator
- extends java.lang.Object
- implements java.util.Iterator
Empty Iterator object
|
Constructor Summary |
EmptyIterator()
Creates a new instance of EmptyIterator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
private static final java.util.Iterator INSTANCE
- Shared global instance
EmptyIterator
public EmptyIterator()
- Creates a new instance of EmptyIterator
getInstance
public static java.util.Iterator getInstance()
- Accessor for shared global instance
hasNext
public boolean hasNext()
- returns false
- Specified by:
hasNext in interface java.util.Iterator
next
public java.lang.Object next()
- returns null
- Specified by:
next in interface java.util.Iterator
remove
public void remove()
- Description copied from interface:
java.util.Iterator
- Remove from the underlying collection the last element returned by next
(optional operation). This method can be called only once after each
call to
next(). It does not affect what will be returned
by subsequent calls to next.
- Specified by:
remove in interface java.util.Iterator