Package com.mchange.v1.util
Class WrapperUIterator
java.lang.Object
com.mchange.v1.util.WrapperUIterator
- All Implemented Interfaces:
ClosableResource,UIterator
This implementation does not yet support removes once hasNext() has
been called... will add if necessary.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWrapperUIterator(UIterator inner) WrapperUIterator(UIterator inner, boolean supports_remove) -
Method Summary
-
Field Details
-
SKIP_TOKEN
-
-
Constructor Details
-
WrapperUIterator
-
WrapperUIterator
-
-
Method Details
-
hasNext
-
next
- Specified by:
nextin interfaceUIterator- Throws:
NoSuchElementExceptionException
-
remove
-
close
Description copied from interface:ClosableResourceforces the release of any resources that might be associated with this object.- Specified by:
closein interfaceClosableResource- Specified by:
closein interfaceUIterator- Throws:
Exception
-
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.)- Throws:
Exception
-