Package org.frankframework.core
Class PeekableDataIterator<I>
java.lang.Object
org.frankframework.core.PeekableDataIterator<I>
- All Implemented Interfaces:
AutoCloseable,IDataIterator<I>
Wrapper for IDataIterator, that allows to peek the object that will be returned by next().
- Author:
- Gerrit van Brakel
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PeekableDataIterator
-
-
Method Details
-
hasNext
- Specified by:
hasNextin interfaceIDataIterator<I>- Throws:
SenderException
-
next
- Specified by:
nextin interfaceIDataIterator<I>- Throws:
SenderException
-
peek
Returns object that will be returned bynext()if present, or null if not. Can be called multiple times.- Throws:
SenderException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceIDataIterator<I>- Throws:
SenderException
-