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 thisIterator
holds
- All Implemented Interfaces:
Iterator<T>
@ConsumerType public class IteratorWrapper<T> extends Object implements Iterator<T>
Wrapper class forIterator
s, that forwards all method calls to the wrappedIterator
.
-
-
Constructor Summary
Constructors Constructor Description IteratorWrapper(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 boolean
hasNext()
T
next()
void
remove()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-