xtc.util
Class EmptyIterator<T>

java.lang.Object
  extended by xtc.util.EmptyIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>

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

An iterator over nothing.

Version:
$Revision: 1.10 $
Author:
Robert Grimm

Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
static
<T> EmptyIterator<T>
value()
          Get the canoncial empty iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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>

value

public static final <T> EmptyIterator<T> value()
Get the canoncial empty iterator.

Returns:
The canonical empty iterator.


Copyright © 2012. All Rights Reserved.