Package com.mchange.v1.util
Class WrapperIterator
java.lang.Object
com.mchange.v1.util.WrapperIterator
- All Implemented Interfaces:
Iterator
This implementation does not yet support removes once hasNext() has
been called... will add if necessary.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWrapperIterator
(Iterator inner) WrapperIterator
(Iterator inner, boolean supports_remove) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
SKIP_TOKEN
-
-
Constructor Details
-
WrapperIterator
-
WrapperIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
transformObject
return SKIP_TOKEN to indicate an object should be skipped, i.e., not exposed as part of the iterator. (we don't use null, because we want to support iterators over null-accepting Collections.)
-