org.jboss.managed.plugins.advice
Class WrapperIterator<T>

java.lang.Object
  extended by org.jboss.managed.plugins.advice.WrapperIterator<T>
Type Parameters:
T - the interface
All Implemented Interfaces:
Iterator<T>

public class WrapperIterator<T>
extends Object
implements Iterator<T>

WrapperIterator.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
WrapperIterator(Iterator<T> delegate, Class<T> interfaceClass)
          Create a new WrapperIterator.
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperIterator

public WrapperIterator(Iterator<T> delegate,
                       Class<T> interfaceClass)
Create a new WrapperIterator.

Parameters:
delegate - the delegate
interfaceClass - the interface class
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T>

next

public T next()
Specified by:
next in interface Iterator<T>

remove

public void remove()
Specified by:
remove in interface Iterator<T>


Copyright ? 2007 JBoss Inc.. All Rights Reserved.