Class DataDepthFirstForestIterator<D>

  • Type Parameters:
    D - is the type of the data inside the forest
    All Implemented Interfaces:
    Iterator<D>

    public class DataDepthFirstForestIterator<D>
    extends Object
    implements Iterator<D>
    This class is an iterator on a forest data.
    Since:
    13.0
    Version:
    17.0 2020-01-04 14:41:41
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.core
    Maven Artifact Id:
    mathtree
    • Constructor Detail

      • DataDepthFirstForestIterator

        public DataDepthFirstForestIterator​(DepthFirstNodeOrder order,
                                            Iterator<Tree<D,​?>> iterator)
        Constructor.
        Parameters:
        order - is the treatement order for data.
        iterator - is the trees to iterate on.
      • DataDepthFirstForestIterator

        public DataDepthFirstForestIterator​(int infixOrder1,
                                            Iterator<Tree<D,​?>> iterator)
        Constructor.
        Parameters:
        infixOrder1 - is the order of the nodes when to treat data according to an infixed iteration.
        iterator - is the trees to iterate on.
    • Method Detail

      • remove

        public void remove()
        Specified by:
        remove in interface Iterator<D>
      • hasNext

        @Pure
        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<D>
      • next

        public D next()
        Specified by:
        next in interface Iterator<D>