stomp.wrapper
Class WrappingIterator

java.lang.Object
  |
  +--stomp.wrapper.WrappingIterator
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
WrappingListIterator

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

wrapping class that turns the results of any Iterator into a wrapped proxy class.

Author:
Eric Lindauer

Constructor Summary
WrappingIterator(java.util.Iterator iterator)
           
 
Method Summary
 java.util.Iterator getIterator()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappingIterator

public WrappingIterator(java.util.Iterator iterator)
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()
Specified by:
remove in interface java.util.Iterator

getIterator

public java.util.Iterator getIterator()