Class AbstractIterator<E>

    • Constructor Detail

      • AbstractIterator

        public AbstractIterator()
    • Method Detail

      • getNext

        protected abstract E getNext()
        Method to implement to provide an iterator implementation. When this method returns null, the iterator is complete.
        Returns:
        the next value for the iterator to return or null for it to be complete.
      • hasNext

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

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