de.knipp.rritoolkit
Class KVList.EmptyIterator<E>

java.lang.Object
  extended by de.knipp.rritoolkit.KVList.EmptyIterator<E>
Type Parameters:
E - the value type
All Implemented Interfaces:
java.util.Iterator<E>
Enclosing class:
KVList

private static class KVList.EmptyIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>

small class implementing an iterator for no elements

Version:
$Revision: 14936 $
Author:
Klaus Malorny

Constructor Summary
private KVList.EmptyIterator()
           
 
Method Summary
 boolean hasNext()
          return whether there are more elements
 E next()
          return the first element
 void remove()
          remove the current element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KVList.EmptyIterator

private KVList.EmptyIterator()
Method Detail

hasNext

public boolean hasNext()
return whether there are more elements

Specified by:
hasNext in interface java.util.Iterator<E>
Returns:
true if so

next

public E next()
       throws java.util.NoSuchElementException
return the first element

Specified by:
next in interface java.util.Iterator<E>
Returns:
the element
Throws:
java.util.NoSuchElementException - always

remove

public void remove()
            throws java.lang.UnsupportedOperationException
remove the current element

Specified by:
remove in interface java.util.Iterator<E>
Throws:
java.lang.UnsupportedOperationException - always


Copyright © 2005-2011 Knipp Medien und Kommunikation GmbH