Package hudson.util
Class Iterators.DuplicateFilterIterator<T>
java.lang.Object
hudson.util.Iterators.FilterIterator<T>
hudson.util.Iterators.DuplicateFilterIterator<T>
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
- Iterators
Remove duplicates from another iterator.
-
Constructor Summary
ConstructorDescriptionDuplicateFilterIterator
(Iterable<? extends T> core) DuplicateFilterIterator
(Iterator<? extends T> core) -
Method Summary
Methods inherited from class hudson.util.Iterators.FilterIterator
hasNext, next, remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
DuplicateFilterIterator
-
DuplicateFilterIterator
-
-
Method Details
-
filter
Description copied from class:Iterators.FilterIterator
Filter out items in the original collection.- Specified by:
filter
in classIterators.FilterIterator<T>
- Returns:
- true to leave this item and return this item from this iterator. false to hide this item.
-