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
public abstract static class Iterators.FilterIterator<T> extends Object implements Iterator<T>
Creates a filtered view of another iterator.- Since:
- 1.150
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FilterIterator(Iterable<? extends T> core)
protected
FilterIterator(Iterator<? extends T> core)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
filter(T t)
Filter out items in the original collection.boolean
hasNext()
T
next()
void
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 abstract boolean filter(T t)
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.
-
-