Class BreadthFirstIterator

  • All Implemented Interfaces:
    java.util.Iterator<GTreeNode>

    public class BreadthFirstIterator
    extends java.lang.Object
    implements java.util.Iterator<GTreeNode>
    • Constructor Detail

      • BreadthFirstIterator

        public BreadthFirstIterator​(GTree tree,
                                    GTreeNode node)
      • BreadthFirstIterator

        public BreadthFirstIterator​(GTree tree,
                                    GTreeNode node,
                                    boolean filtered)
    • Method Detail

      • stream

        public java.util.stream.Stream<GTreeNode> stream()
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<GTreeNode>
      • next

        public GTreeNode next()
        Specified by:
        next in interface java.util.Iterator<GTreeNode>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<GTreeNode>