/* (non-Javadoc)
@see java.util.Iterator#next()
198334
public Object next()
  {
    SIMPControllable control = null;
    if(next == null)
    {
      ControllableResource controllable = (ControllableResource)parent.next();
      if(controllable != null)
      {
        control = controllable.getControlAdapter();
      }
      while(control == null)
      {
        controllable = (ControllableResource)parent.next();
        if(controllable != null)
        {
          control = controllable.getControlAdapter();
        }
      }
    }
    else
    {
      control = next;
      next = null;
    }
    return control;
  }
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;
	}
255748
public String next() {
	if (next == null) {
	    throw new NoSuchElementException();
	}
	String s = next;
	advance();
	return s;
    }
366444
@Override
    public E next()
    {
        if (!checkOnFetchSize() || scrollComplete)
        {
            throw new NoSuchElementException("Nothing to scroll further for:" + entityMetadata.getEntityClazz());
        }
        E result = (E) handler.next(entityMetadata, columns);
        if (!entityMetadata.isRelationViaJoinTable()
                && (entityMetadata.getRelationNames() == null || (entityMetadata.getRelationNames().isEmpty())))
        {
            return result;
        }
        else
        {
            return result = setRelationEntities(result, client, entityMetadata);
        }
    }
905986
public function next()
    {
        $iterator = $this->iterators[$this->index];
        $next = $iterator->next();

        if (false === $this->valid() && isset($this->iterators[$this->index + 1])) {
            $this->index++;
        }
    }
1041549
@Override
	public T next() {
		SQLException sqlException = null;
		try {
			T result = nextThrow();
			if (result != null) {
				return result;
			}
		} catch (SQLException e) {
			sqlException = e;
		}
		// we have to throw if there is no next or on a SQLException
		last = null;
		closeQuietly();
		throw new IllegalStateException("Could not get next result for " + dataClass, sqlException);
	}
727191
public boolean next()
    {
        if (this.iter == null) {
            this.iter = new ArrayList<>(this.values).iterator();
        }
        final boolean ret = this.iter.hasNext();
        if (ret) {
            this.current = this.iter.next();
        }
        return ret;
    }
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();
        }
    }
1154141
@Override
    public Sequence<T> nextSequence() {
        Sequence<T> sequence = currentIterator.next();
        sequence.setSequenceId(tagger.getAndIncrement());
        return sequence;
    }
1331431
@Override
	public boolean next() {
		if (isLhsEmpty)
			return false;
		if (idx.next()) {
			ts.moveToRecordId(idx.getDataRecordId());
			return true;
		} else if (!(isLhsEmpty = !s.next())) {
			resetIndex();
			return next();
		} else
			return false;
	}
625634
public Object next()
  {
    if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "next");
    
    StreamSet sourceStreamSet = (StreamSet)super.next();
    SIMPPtoPOutboundTransmitControllable sourceStreamSetControl = 
      (SIMPPtoPOutboundTransmitControllable)sourceStreamSet.getControlAdapter();
    if(sourceStreamSetControl != null)
    {
      ((SourceStreamSetControl)sourceStreamSetControl).setSourceStreamManager(sourceStreamMgr);
    }
    
    if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "next", sourceStreamSetControl);
    return sourceStreamSetControl;
  }
903609
public void next() {
        boolean hasLeft = currentLeft != null;
        boolean hasRight = currentRight != null;

        if (!hasLeft && !hasRight) {
            throw new NoSuchElementException();
        }

        int order;
        if (hasLeft && !hasRight) {
            order = -1;
        } else if (!hasLeft) {
            order = 1;
        } else {
            order = comparator.compare(currentLeft, currentRight);
        }

        if (order < 0) {
            reportedLeft = currentLeft;
            currentLeft = nextOrNull(left);
            reportedRight = null;
        } else if (order > 0) {
            reportedLeft = null;
            reportedRight = currentRight;
            currentRight = nextOrNull(right);
        } else {
            reportedLeft = currentLeft;
            reportedRight = currentRight;
            currentLeft = nextOrNull(left);
            currentRight = nextOrNull(right);
        }
    }
543254
public String next() {
        if (entry == null) return null;
        entry = entry.next;
        return entry.element;
    }
259756
public function next()
    {
        $row = $this->getRow($this->pointer);
        if (!is_null($row)) {
            $this->pointer++;
        }
    }
752927
@Override
	public T next() {
		if (hasNext()) {
			T current = next;
			next = null;
			return current;
		} else {
			throw new NoSuchElementException();
		}
	}
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;
    }
317590
public void advance() {
        String s = null;
        if (baseIterator.hasNext())
            next = baseIterator.next();
        else
            next = null;
    }