Class AbstractIterator<T>

java.lang.Object
com.google.common.base.AbstractIterator<T>
All Implemented Interfaces:
Iterator<T>
Direct Known Subclasses:
Splitter.SplittingIterator

abstract class AbstractIterator<T> extends Object implements Iterator<T>
Note this class is a copy of AbstractIterator (for dependency reasons).
  • Field Details

  • Constructor Details

    • AbstractIterator

      protected AbstractIterator()
  • Method Details

    • computeNext

      @CheckForNull protected abstract T computeNext()
    • endOfData

      @CheckForNull protected final T endOfData()
    • hasNext

      public final boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • tryToComputeNext

      private boolean tryToComputeNext()
    • next

      public final T next()
      Specified by:
      next in interface Iterator<T>
    • remove

      public final void remove()
      Specified by:
      remove in interface Iterator<T>