Class AllRefsIterator<T>
java.lang.Object
com.google.common.collect.UnmodifiableIterator<T>
com.google.common.collect.AbstractIterator<T>
org.qubership.atp.dataset.model.utils.tree.AllRefsIterator<T>
- All Implemented Interfaces:
Iterator<T>
- Direct Known Subclasses:
RefsVisitor
public abstract class AllRefsIterator<T>
extends com.google.common.collect.AbstractIterator<T>
Takes parents in form of iterator. Iterates over parents themselves plus over it's children,
returned by
getChildren(Object). Omits nulls and duplicates. May be used to traverse a
tree.-
Constructor Summary
ConstructorsModifierConstructorDescriptionAllRefsIterator(Iterator<? extends T> parents, boolean omitDuplicates) SeeAllRefsIterator.protectedAllRefsIterator(Iterator<? extends T> parents, Predicate<T> itemsFilter) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected Tprotected voidforwardToNewParent(T parent) getChildren(T parent) 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
-
AllRefsIterator
SeeAllRefsIterator. -
AllRefsIterator
-
-
Method Details
-
computeNext
- Specified by:
computeNextin classcom.google.common.collect.AbstractIterator<T>
-
getChildren
-
forwardToNewParent
-
backToPreviousParent
protected void backToPreviousParent()
-