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:
java.util.Iterator<T>
@ConsumerType public class IteratorWrapper<T> extends java.lang.Object implements java.util.Iterator<T>
Wrapper class forIterator
s, 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 boolean
hasNext()
T
next()
void
remove()
-
-
-
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
-
-