Class LeafsWalker<I,O,L>
java.lang.Object
com.google.common.collect.UnmodifiableIterator<L>
com.google.common.collect.AbstractIterator<L>
org.qubership.atp.dataset.model.utils.tree.LeafsWalker<I,O,L>
- All Implemented Interfaces:
Iterator<L>
public class LeafsWalker<I,O,L>
extends com.google.common.collect.AbstractIterator<L>
-
Constructor Summary
ConstructorsConstructorDescriptionLeafsWalker(Iterator<? extends I> parents, TraverseAndLeafsHandler<I, O, L> traverseHandler, Predicate<Object> itemsFilter) Iterates over leafs. -
Method Summary
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peekMethods inherited from class com.google.common.collect.UnmodifiableIterator
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
LeafsWalker
public LeafsWalker(@Nonnull Iterator<? extends I> parents, @Nonnull TraverseAndLeafsHandler<I, O, L> traverseHandler, @Nullable Predicate<Object> itemsFilter) Iterates over leafs.- Parameters:
parents- to iterate over. Inclusive.traverseHandler- describes paths to iterate over and explains how construct leaf.itemsFilter- may filter any tree node. SeeAllRefsIterator.itemsFilter. May be used to resolve recursion.
-
-
Method Details
-
computeNext
- Specified by:
computeNextin classcom.google.common.collect.AbstractIterator<L>
-