Class NullSkippingIteratorWrapper<E>

  • All Implemented Interfaces:

    public class NullSkippingIteratorWrapper<E>
    extends java.lang.Object
    This iterator traverses the entire backing iterator, 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

      • NullSkippingIteratorWrapper

        public NullSkippingIteratorWrapper​(java.util.Iterator<E> iterator)
    • 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>