Package org.jetbrains.mps.util
Class FilterIterator<T>
- java.lang.Object
-
- org.jetbrains.mps.util.FilterIterator<T>
-
- All Implemented Interfaces:
Iterator<T>
public final class FilterIterator<T> extends Object implements Iterator<T>
Iterator that usesCondition
to filter out undesired elements. Other than matching elements by condition, features of original iterator are preserved. This class is identical to jetbrains.mps.util.ConditionalIterator, just lives under another package in another dependency unit. Since I can't move that class here without breaking existing code, and don't want to split 'kernel' module into 'true kernel' and 'implementation kernel', the class is copied here and original is deprecated.
-
-
Constructor Summary
Constructors Constructor Description FilterIterator(Iterator<? extends T> iterator, Condition<T> condition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-