Class AbstractLongIterator

    • Field Detail

      • mNext

        protected long mNext
    • Constructor Detail

      • AbstractLongIterator

        protected AbstractLongIterator()
      • AbstractLongIterator

        protected AbstractLongIterator​(long theFirst)
    • Method Detail

      • next

        public final long next()
        Specified by:
        next in interface LongIterator
      • endOfData

        protected final long endOfData()
      • computeNext

        protected abstract long computeNext()
        Computes the next long to be returned by the iterator. The only method supposed to be implemented by subclasses.
      • performReset

        protected abstract void performReset()
        Resets the state so iteration can start over.