/*
(non-Javadoc)

@see java.util.Iterator#next()
359784
@Override
    public E next()
    {
        if (current != null && checkOnEmptyResult() && current.equals(results.get(results.size() - 1)))
        {
            hasNext();
        }

        if (scrollComplete)
        {
            throw new NoSuchElementException("Nothing to scroll further for:" + entityMetadata.getEntityClazz());
        }

        E lastFetchedEntity = getEntity(results.get(results.size() - 1));
        start = lastFetchedEntity != null ? idValueInByteArr() : null;
        current = getEntity(results.get(results.size() - 1));

        return current;
    }
900173
public T next() {
        if (!hasNext()) {
            throw new NoSuchElementException();
        }
        // 'next' is guaranteed non-null by a hasNext() which returned true
        T returnObj = this.next;
        this.next = null;
        return returnObj;
    }
736927
public function next()
    {
        if (!isset($this->buffer[++$this->position])
            && $this->position != $this->resultSet->key() // Avoid calling next() when
                                                          // a complete iteration was already done
        ) {
            $this->resultSet->next();
        }
    }
1112924
public void next()
    {
        if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
            logger.logp(Level.FINE, CLASS_NAME,"next", "next");
        } 
        length = -1;
        limit = Long.MAX_VALUE;   // PM03146
        total = 0;
        count = 0;
        pos = 0;
    }
812681
public Document next() {
        if (!hasNext())
            throw new NoSuchElementException("No further documents");
        if (bufferError != null)
            throw bufferError;
        try {
            return documentsToReturn.take();
        } catch (InterruptedException ie) {
            throw new IOError(ie);
        }
    }
724750
@Override
  public T next() {
    Assert.isTrue(hasNext(), new NoSuchElementException("The iteration has no more elements!"));
    T value = iterators.peek().next();
    nextCalled.set(true);
    return value;
  }
935948
public Object next() {
        if ( this.entry != null ) {
            this.entry = this.entry.getNext();
        }

        // if no entry keep skipping rows until we come to the end, or find one that is populated
        while ( this.entry == null && this.row < this.length ){
            this.entry = this.table[this.row];
            this.row++;
        }

        return this.entry;
    }
1319909
public XEvent next() {
		XEvent result = null;
		try {
			result = list.get(position);
		} catch (IndexOutOfBoundsException e) {
			throw new NoSuchElementException("There is no next event in this trace");
		} finally {
			position++;
		}
		return result;
	}
143125
public void next() {
        final PlayList pl = getPlaylist();

        final int previousPosition = pl.getCurrentSlide();
        pl.next();
        final int currentPosition = pl.getCurrentSlide();

        playSlide(currentPosition, previousPosition);
    }
727587
def next(self):
    ''''''

    # if iteration has not begun, begin it.
    if not self._iterator:
      self.__iter__()

    next = self._iterator.next()
    if next is not StopIteration:
      self._returned_inc(next)
    return next
199516
public final int next() throws IOException {
        if (m_nextException!=null) {
            throw m_nextException;
        }
        try {
            return doNext();
        }
        catch (IOException e) {
            m_nextException=e;
            resetState();
            throw e;
        }
    }
315756
@Override
    public List<Writable> next() {
        if(!hasNext()){ //Also triggers prefetch
            throw new NoSuchElementException("No next element");
        }
        List<Writable> out = next.getRecord();
        next = null;
        return out;
    }
151451
@Override
    public Optional<E> next() {
        if (iterator.hasNext()) {
            return Optional.of(iterator.next());
        }
        return Optional.empty();
    }
692689
@Override
	public String next() {
		if (!hasNext()) {
			throw new NoSuchElementException(toString() + " ended");
		}

		current = String.format(format, generator.next());

		return current();
	}
259756
public function next()
    {
        $row = $this->getRow($this->pointer);
        if (!is_null($row)) {
            $this->pointer++;
        }
    }
1316242
@Override
    public boolean next() throws JRException {
        List<BandData> children = currentBand.getChildrenList();

        if (children != null && !children.isEmpty() && !visitedBands.containsKey(currentBand)) {
            currentIterator = children.iterator();
            visitedBands.put(currentBand, currentIterator);
        } else if (currentIterator == null) {
            currentIterator = Collections.singletonList(currentBand).iterator();
        }

        if (currentIterator.hasNext()) {
            currentBand = currentIterator.next();
            if (readBands.contains(currentBand) || currentBand.getData().isEmpty())
                return next();

            return true;
        } else {
            BandData parentBand = currentBand.getParentBand();
            currentBand = parentBand;
            currentIterator = visitedBands.get(parentBand);

            if (parentBand == null || parentBand.equals(root))
                return false;

            return next();
        }
    }
626443
public function next()
    {
        try {
            $this->current = $this->map->successor($this->current);
        } catch (\OutOfBoundsException $e) {
            $this->current = null;
        }

        $this->index++;
    }