Package org.plumelib.util
Class CollectionsPlume.FilteredIterator<T>
java.lang.Object
org.plumelib.util.CollectionsPlume.FilteredIterator<T>
- Type Parameters:
T
- the type of elements of the iterator
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
CollectionsPlume
@Deprecated
public static final class CollectionsPlume.FilteredIterator<T>
extends Object
implements Iterator<T>
Deprecated.
An iterator that only returns elements that match the given predicate.
-
Constructor Details
-
FilteredIterator
Deprecated.Create an iterator that only returns elements ofitor
that match the given predicate.- Parameters:
itor
- the Iterator to filterpredicate
- the predicate that determines which elements to retain
-
-
Method Details
-
hasNext
public boolean hasNext(@GuardSatisfied CollectionsPlume.FilteredIterator<T> this) Deprecated. -
next
Deprecated. -
remove
public void remove(@GuardSatisfied CollectionsPlume.FilteredIterator<T> this) Deprecated.
-
CollectionsPlume.filteredIterator(java.util.Iterator<T>, java.util.function.Predicate<T>)