Class ArrayBackedNullSkippingIterator<E>

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

    public class ArrayBackedNullSkippingIterator<E>
    extends java.lang.Object
    This iterator traverses the entire backing array, while skipping over null entries.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      protected boolean internalHasNext()  
      protected E internalNext()  
      E 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
    • Constructor Detail

      • ArrayBackedNullSkippingIterator

        public ArrayBackedNullSkippingIterator​(E[] array)
    • Method Detail

      • internalHasNext

        protected boolean internalHasNext()
      • internalNext

        protected E internalNext()
      • hasNext

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

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