Moves the current position to the next date.

@return  void

@since   2.0.0
163213
public function next()
	{
		$this->key++;
		$this->current = $this->current->add($this->interval);
	}
1357910
public void advance(long currentTimeNanos) {
    long previousTimeNanos = nanos;
    try {
      nanos = currentTimeNanos;
      for (int i = 0; i < SHIFT.length; i++) {
        long previousTicks = (previousTimeNanos >> SHIFT[i]);
        long currentTicks = (currentTimeNanos >> SHIFT[i]);
        if ((currentTicks - previousTicks) <= 0L) {
          break;
        }
        expire(i, previousTicks, currentTicks);
      }
    } catch (Throwable t) {
      nanos = previousTimeNanos;
      throw t;
    }
  }
374559
public function next()
    {
        $this->current = null;
        if (null !== $this->search) {
            $entry = $this->search->next();
            if (null !== $entry) {
                $this->current = new Node();
                $this->current->hydrateFromEntry($entry);
            }
        }
    }
633706
public function nextColumn()
    {
        $this->currentColumn = next($this->columns);
        $this->updateMaxColumn($this->currentColumn);

        return true;
    }
1193903
public function next()
    {
        if ($this->limit && $this->currentPos >= $this->limit) { // it won't go further than the selected limit
            return null;
        }
        $oldLimit = $this->limit;
        $oldOffset = $this->offset;
        $this->limit = 1;
        $this->offset += $this->currentPos;
        $rows = $this->get();
        $this->limit = $oldLimit;
        $this->offset = $oldOffset;
        $this->currentPos++;
        return isset($rows[0]) ? $rows[0] : null;
    }
819748
protected function nextDaily()
    {
        if (!$this->byHour && !$this->byDay) {
            $this->currentDate = $this->currentDate->modify('+'.$this->interval.' days');

            return;
        }

        if (!empty($this->byHour)) {
            $recurrenceHours = $this->getHours();
        }

        if (!empty($this->byDay)) {
            $recurrenceDays = $this->getDays();
        }

        if (!empty($this->byMonth)) {
            $recurrenceMonths = $this->getMonths();
        }

        do {
            if ($this->byHour) {
                if ('23' == $this->currentDate->format('G')) {
                    // to obey the interval rule
                    $this->currentDate = $this->currentDate->modify('+'.($this->interval - 1).' days');
                }

                $this->currentDate = $this->currentDate->modify('+1 hours');
            } else {
                $this->currentDate = $this->currentDate->modify('+'.$this->interval.' days');
            }

            // Current month of the year
            $currentMonth = $this->currentDate->format('n');

            // Current day of the week
            $currentDay = $this->currentDate->format('w');

            // Current hour of the day
            $currentHour = $this->currentDate->format('G');
        } while (
            ($this->byDay && !in_array($currentDay, $recurrenceDays)) ||
            ($this->byHour && !in_array($currentHour, $recurrenceHours)) ||
            ($this->byMonth && !in_array($currentMonth, $recurrenceMonths))
        );
    }
953598
public function rewind()
	{
		// Set the current position to the first object.
		if (empty($this->objects))
		{
			$this->current = false;
		}
		else
		{
			$keys = $this->keys();
			$this->current = array_shift($keys);
		}
	}
274217
private function next()
    {
        if (!$this->valid()) {
            return;
        }

        ++$this->cursor;
        $this->current = $this->next;
        $this->next = isset($this->string[$this->cursor + 1]) ? $this->string[$this->cursor + 1] : null;
    }
776849
public function shiftPositions()
    {
        $this->owner->updateAllCounters(
            [$this->positionAttribute => -1],
            ['>', $this->positionAttribute, $this->owner->{$this->positionAttribute}]
        );
    }
626443
public function next()
    {
        try {
            $this->current = $this->map->successor($this->current);
        } catch (\OutOfBoundsException $e) {
            $this->current = null;
        }

        $this->index++;
    }
1202912
public function advance() : void
    {
        if ($this->cursor < count($this->stream->getTokens()) - 1) {
            ++$this->cursor;
        }
    }
449518
public function next()
    {
        $this->current = $this->parser->inner($this->start, $this->end);
        if ($this->current->isEmpty()) {
            $this->valid = false;
            $this->position = -1;
        } else {
            $this->valid = true;
            ++$this->position;
        }
    }
259756
public function next()
    {
        $row = $this->getRow($this->pointer);
        if (!is_null($row)) {
            $this->pointer++;
        }
    }
128845
protected function clampPosition()
    {
        if (!$this->isDirty($this->getPositionColumn())) {
            return;
        }
        $newPosition = max(0, min($this->position, $this->getNextAfterLastPosition()));
        $this->attributes[$this->getPositionColumn()] = $newPosition;
    }
535460
public function next()
    {
        $this->pageIndex++;
        $this->position++;

        if (count($this->pageIterator->current()) <= $this->pageIndex && $this->nextResultToken()) {
            $this->pageIterator->next();
            $this->pageIndex = 0;
        }
    }
845198
public function moveUp ()
		{
			if ($this->hasAttribute('order'))
			{
				$query = self::find()->where([ '>', 'order', $this->order ])->orderBy('order ASC');

				$condition = $this->orderCondition();
				if ($condition !== null)
				{
					$query->andWhere($condition);
				}

				$object = $query->one();
				if ($object != null)
				{
					$order = $object->order;
					$object->order = $this->order;
					$this->order = $order;
					$object->save();
					$this->save();
				}
			}
		}
619681
public function next()
    {
        /** @var VO $vo */
        $vo = next($this->results);
        $this->currentKey = key($this->results);

        if ($this->currentKey === null) {
            if ($this->ended !== true) {
                $this->reloadResults();
            }
        } else {
            $this->lastId = $vo->getId();
        }
    }