ua.gradsoft.termware.util
Class EmptyIterator<X>

java.lang.Object
  extended by 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

Method Summary
static EmptyIterator<?> getInstance()
           
 boolean hasNext()
           
 X next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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()