Class InternalNodeMapper.IteratorStack

  • Enclosing class:
    InternalNodeMapper

    static final class InternalNodeMapper.IteratorStack
    extends java.lang.Object
    Optimized variant similar in functionality to (a subset of) ArrayDeque; used to hold enclosing Array/Object nodes during recursion-as-iteration.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int _end  
      private java.util.Iterator<?>[] _stack  
      private int _top  
    • Constructor Summary

      Constructors 
      Constructor Description
      IteratorStack()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<?> popOrNull()  
      void push​(java.util.Iterator<?> it)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _stack

        private java.util.Iterator<?>[] _stack
      • _top

        private int _top
      • _end

        private int _end
    • Constructor Detail

      • IteratorStack

        public IteratorStack()
    • Method Detail

      • push

        public void push​(java.util.Iterator<?> it)
      • popOrNull

        public java.util.Iterator<?> popOrNull()