Package org.apache.sling.api.wrappers
Class IteratorWrapper<T>
- java.lang.Object
 - 
- org.apache.sling.api.wrappers.IteratorWrapper<T>
 
 
- 
- Type Parameters:
 T- the type of objects thisIteratorholds
- All Implemented Interfaces:
 java.util.Iterator<T>
@ConsumerType public class IteratorWrapper<T> extends java.lang.Object implements java.util.Iterator<T>
Wrapper class forIterators, that forwards all method calls to the wrappedIterator. 
- 
- 
Constructor Summary
Constructors Constructor Description IteratorWrapper(java.util.Iterator<T> wrappedIterator)Creates a wrapping iterator, delegating all method calls to the givenwrappedIterator. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext()voidremove() 
 - 
 
- 
- 
Constructor Detail
- 
IteratorWrapper
public IteratorWrapper(java.util.Iterator<T> wrappedIterator)
Creates a wrapping iterator, delegating all method calls to the givenwrappedIterator.- Parameters:
 wrappedIterator- the wrapped iterator
 
 - 
 
 -