wt.util
Class EmptyIterator
java.lang.Object
wt.util.EmptyIterator
- All Implemented Interfaces:
- Iterator
- public class EmptyIterator
- extends Object
- implements Iterator
Iterator that can be used, to avoid overhead when the collection contains no elements.
Singleton can be access via EmptyIterator.INSTANCE.
Supported API: false
Extendable: false
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final EmptyIterator INSTANCE
EmptyIterator
EmptyIterator()
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