Package org.eclipse.emf.compare.graph
Interface PruningIterator<E>
- Type Parameters:
E- Kind of elements this iterator is for.
- All Superinterfaces:
java.util.Iterator<E>
public interface PruningIterator<E>
extends java.util.Iterator<E>
A specialized tree iterator allowing clients to prune all children below a selected one.
Note that this only makes sense if the underlying iteration operates on a tree-like structure.
- Since:
- 3.3
-
Method Summary
Modifier and Type Method Description voidprune()Prunes the iterator so that it skips over all the elements below the most recent result of callingnext().
-
Method Details
-
prune
void prune()Prunes the iterator so that it skips over all the elements below the most recent result of callingnext().This will have no effect if called before any call to
Iterator.next().
-