net.jinx.db
Class NoRemoveIterator

java.lang.Object
  extended by net.jinx.db.NoRemoveIterator
All Implemented Interfaces:
java.util.Iterator

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

Iterator wrapper for blocking the remove() method.

API Stability: Alpha.


Constructor Summary
NoRemoveIterator(java.util.Iterator itr)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
          Always throws an UnsupportedOperationException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoRemoveIterator

public NoRemoveIterator(java.util.Iterator itr)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Always throws an UnsupportedOperationException.

Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException - is always thrown by this method.