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
-
Method Summary
-
Constructor Details
-
PeekableDataIterator
-
-
Method Details
-
hasNext
- Specified by:
hasNext
in interfaceIDataIterator<I>
- Throws:
SenderException
-
next
- Specified by:
next
in 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceIDataIterator<I>
- Throws:
SenderException
-