jeroen.util
Class EmptyIterator

java.lang.Object
  |
  +--jeroen.util.AbstractIterator
        |
        +--jeroen.util.EmptyIterator
All Implemented Interfaces:
Iterator

public class EmptyIterator
extends AbstractIterator

Een lege iterator.


Constructor Summary
EmptyIterator()
           
 
Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 Object next()
          Returns the next element in the interation.
 
Methods inherited from class jeroen.util.AbstractIterator
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyIterator

public EmptyIterator()
Method Detail

hasNext

public boolean hasNext()
Description copied from class: AbstractIterator
Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
Overrides:
hasNext in class AbstractIterator
Following copied from class: jeroen.util.AbstractIterator
Returns:
true if the iterator has more elements.

next

public Object next()
Description copied from class: AbstractIterator
Returns the next element in the interation.
Overrides:
next in class AbstractIterator
Following copied from class: jeroen.util.AbstractIterator
Returns:
the next element in the iteration.
Throws:
NoSuchElementException - iteration has no more elements.