Documentation of 'cc.redberry.core.tensor.iterator.FromChildToParentIterator' Java class
FromChildToParentIterator
cc.redberry.core.tensor.iterator

Class FromChildToParentIterator

  • All Implemented Interfaces:
    TreeIterator


    public final class FromChildToParentIterator
    extends java.lang.Object
    Wrapper for TreeTraverseIterator. Return only Entering elements. Traverse from out.
    Since:
    1.0
    • Constructor Detail

      • FromChildToParentIterator

        public FromChildToParentIterator(Tensor tensor,
                                         TraverseGuide guide)
      • FromChildToParentIterator

        public FromChildToParentIterator(Tensor tensor)
    • Method Detail

      • depth

        public int depth()
        Description copied from interface: TreeIterator
        Returns the current depth in the tree.
        Specified by:
        depth in interface TreeIterator
        Returns:
        current depth in the tree
      • next

        public Tensor next()
        Description copied from interface: TreeIterator
        Returns the next tensor in tree or null if iteration is finished
        Specified by:
        next in interface TreeIterator
        Returns:
        the next tensor in tree or null if iteration is finished
      • result

        public Tensor result()
        Description copied from interface: TreeIterator
        Returns the result after iteration finished (or stopped). After this step the iterator becomes broken.
        Specified by:
        result in interface TreeIterator
        Returns:
        the result after iteration finished (or stopped)
      • set

        public void set(Tensor tensor)
        Description copied from interface: TreeIterator
        Set current tensor in tree.
        Specified by:
        set in interface TreeIterator
        Parameters:
        tensor - tensor

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.