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

Interface TreeIterator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      int depth()
      Returns the current depth in the tree.
      Tensor next()
      Returns the next tensor in tree or null if iteration is finished
      Tensor result()
      Returns the result after iteration finished (or stopped).
      void set(Tensor tensor)
      Set current tensor in tree.
    • Method Detail

      • next

        Tensor next()
        Returns the next tensor in tree or null if iteration is finished
        Returns:
        the next tensor in tree or null if iteration is finished
      • set

        void set(Tensor tensor)
        Set current tensor in tree.
        Parameters:
        tensor - tensor
      • result

        Tensor result()
        Returns the result after iteration finished (or stopped). After this step the iterator becomes broken.
        Returns:
        the result after iteration finished (or stopped)
      • depth

        int depth()
        Returns the current depth in the tree.
        Returns:
        current depth in the tree

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.