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>


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String LICENSE
           
static java.lang.String REVISION
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

LICENSE

public static final java.lang.String LICENSE
See Also:
Constant Field Values

REVISION

public static final java.lang.String REVISION
See Also:
Constant Field Values
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>