Class DynamicBuffer.TableIterator

  • All Implemented Interfaces:
    java.util.Iterator<T>
    Enclosing class:
    DynamicBuffer<T>

    protected class DynamicBuffer.TableIterator
    extends java.lang.Object
    implements java.util.Iterator<T>
    Iterates through all elements of the matrix. The range (from-to) can be defined, default is [hd+1 .. hr] (incl hr). Matrix compactions and resizings will lead to undefined results, as this iterator doesn't maintain a separate ref of the matrix, so it is best to run this with the lock held. This iterator is also used by DynamicBuffer.stream()
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int column  
      protected T[] current_row  
      protected long from  
      protected int row  
      protected long to  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TableIterator()  
      protected TableIterator​(long from, long to)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      T next()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Field Detail

      • row

        protected int row
      • column

        protected int column
      • current_row

        protected T[] current_row
      • from

        protected long from
      • to

        protected final long to
    • Constructor Detail

      • TableIterator

        protected TableIterator()
      • TableIterator

        protected TableIterator​(long from,
                                long to)
    • Method Detail

      • hasNext

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

        public T next()
        Specified by:
        next in interface java.util.Iterator<T>