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
public static final class Iterators.DuplicateFilterIterator<T> extends Iterators.FilterIterator<T>
Remove duplicates from another iterator.
-
-
Constructor Summary
Constructors Constructor Description DuplicateFilterIterator(Iterable<? extends T> core)
DuplicateFilterIterator(Iterator<? extends T> core)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
filter(T t)
Filter out items in the original collection.-
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
-
-
-
-
Method Detail
-
filter
protected boolean filter(T t)
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.
-
-