Package hudson.util
Class Iterators.FilterIterator<T>
java.lang.Object
hudson.util.Iterators.FilterIterator<T>
- All Implemented Interfaces:
Iterator<T>
- Direct Known Subclasses:
Iterators.DuplicateFilterIterator
- Enclosing class:
- Iterators
Creates a filtered view of another iterator.
- Since:
- 1.150
-
Constructor Summary
ModifierConstructorDescriptionprotected
FilterIterator
(Iterable<? extends T> core) protected
FilterIterator
(Iterator<? extends T> core) -
Method Summary
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
-
FilterIterator
-
FilterIterator
-
-
Method Details
-
filter
Filter out items in the original collection.- Returns:
- true to leave this item and return this item from this iterator. false to hide this item.
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-