net.sf.freecol.common.util
Class EmptyIterator<T>

java.lang.Object
  extended by net.sf.freecol.common.util.EmptyIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>

public final class EmptyIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>


Method Summary
static
<T> EmptyIterator<T>
getInstance()
          Returns an instance of the EmptyIterator for the given type.
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static <T> EmptyIterator<T> getInstance()
Returns an instance of the EmptyIterator for the given type.

Type Parameters:
T - the type of the empty iterator.
Returns:
an EmptyIterator of the given type.

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()
Specified by:
next in interface java.util.Iterator<T>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<T>