de.uni_paderborn.robots.misc
Class EmptyIterator

java.lang.Object
  |
  +--de.uni_paderborn.robots.misc.EmptyIterator
All Implemented Interfaces:
java.util.Iterator

public class EmptyIterator
extends java.lang.Object
implements java.util.Iterator


Constructor Summary
EmptyIterator()
           
 
Method Summary
 boolean hasNext()
          An EmptyIterator does not have next object.
 java.lang.Object next()
          Cannot access to next object in an EmptyIterator.
 void remove()
          Next object cannot be remove, not present.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

EmptyIterator

public EmptyIterator()
Method Detail

hasNext

public boolean hasNext()
An EmptyIterator does not have next object. Returns 'false'.
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Cannot access to next object in an EmptyIterator. Returns 'null'.
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Next object cannot be remove, not present.
Specified by:
remove in interface java.util.Iterator