Package io.debezium.util
Interface Iterators.PreviewIterator<T>
- Type Parameters:
T
- the type of value
- All Superinterfaces:
Iterator<T>
- Enclosing class:
- Iterators
A read only iterator that is able to preview the next value without consuming it or altering the behavior or semantics
of the normal
Iterator
methods.-
Method Summary
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
peek
T peek()Peek at the next value without consuming or using it. This method returns the same value if called multiple times betweenIterator.next()
.- Returns:
- the next value, or null if there are no more
-