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

Class FromParentToChildIterator

  • All Implemented Interfaces:
    TreeIterator


    public final class FromParentToChildIterator
    extends java.lang.Object
    Wrapper for TreeTraverseIterator. Return only Leaving elements. Traverse into.
    Since:
    1.0
    • Constructor Detail

      • FromParentToChildIterator

        public FromParentToChildIterator(Tensor tensor,
                                         TraverseGuide guide)
      • FromParentToChildIterator

        public FromParentToChildIterator(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.