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 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. See AllRefsIterator.itemsFilter. May be used to resolve recursion.
  • Method Details

    • computeNext

      protected L computeNext()
      Specified by:
      computeNext in class com.google.common.collect.AbstractIterator<L>