类 TreeIterator

  • 所有已实现的接口:
    java.util.Iterator<java.lang.Object>

    public class TreeIterator
    extends java.lang.Object
    implements java.util.Iterator<java.lang.Object>
    Return a node stream from a doubly-linked tree whose nodes know what child index they are. No remove() is supported. Emit navigation nodes (DOWN, UP, and EOF) to let show tree structure.
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected TreeAdaptor adaptor  
      java.lang.Object down  
      java.lang.Object eof  
      protected boolean firstTime  
      protected FastQueue<java.lang.Object> nodes
      If we emit UP/DOWN nodes, we need to spit out multiple nodes per next() call.
      protected java.lang.Object root  
      protected java.lang.Object tree  
      java.lang.Object up  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      boolean hasNext()  
      java.lang.Object next()  
      void remove()  
      void reset()  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 java.util.Iterator

        forEachRemaining
    • 字段详细资料

      • root

        protected java.lang.Object root
      • tree

        protected java.lang.Object tree
      • firstTime

        protected boolean firstTime
      • up

        public java.lang.Object up
      • down

        public java.lang.Object down
      • eof

        public java.lang.Object eof
      • nodes

        protected FastQueue<java.lang.Object> nodes
        If we emit UP/DOWN nodes, we need to spit out multiple nodes per next() call.
    • 构造器详细资料

      • TreeIterator

        public TreeIterator​(java.lang.Object tree)
      • TreeIterator

        public TreeIterator​(TreeAdaptor adaptor,
                            java.lang.Object tree)
    • 方法详细资料

      • reset

        public void reset()
      • hasNext

        public boolean hasNext()
        指定者:
        hasNext 在接口中 java.util.Iterator<java.lang.Object>
      • next

        public java.lang.Object next()
        指定者:
        next 在接口中 java.util.Iterator<java.lang.Object>
      • remove

        public void remove()
        指定者:
        remove 在接口中 java.util.Iterator<java.lang.Object>