ua.gradsoft.termware.util
Class EmptyIterator<X>
java.lang.Object
ua.gradsoft.termware.util.EmptyIterator<X>
- All Implemented Interfaces:
- Iterator<X>
public final class EmptyIterator<X>
- extends Object
- implements Iterator<X>
Singleton for empty iterator
- Author:
- Ruslan Shevchenko
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hasNext
public final boolean hasNext()
- Specified by:
hasNext in interface Iterator<X>
next
public final X next()
- Specified by:
next in interface Iterator<X>
remove
public final void remove()
- Specified by:
remove in interface Iterator<X>
getInstance
public static final EmptyIterator<?> getInstance()