Package nl.vpro.util
Class SkippingIterator<T>
java.lang.Object
nl.vpro.util.SkippingIterator<T>
- All Implemented Interfaces:
Iterator<T>
A wrapping iterator with the option to skip certain entries (based on comparing with the previous entry)
- Since:
- 1.68
- Author:
- Michiel Meeuwissen
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSkippingIterator
(Iterator<T> wrapped) SkippingIterator
(Iterator<T> wrapped, BiFunction<T, T, Boolean> comparator) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove