Class FilterIterator<T>

  • All Implemented Interfaces:
    Iterator<T>

    public final class FilterIterator<T>
    extends Object
    implements Iterator<T>
    Iterator that uses Condition 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.