This version returns the next physical link (which may be logically
unlinked)

@return the next link object or null if nothing left in the list to return
969849
public final Link getNextPhysicalLink() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.entry(this, tc, "getNextPhysicalLink", _positionString());
        }
        Link nextLink = _nextLink;
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.exit(this, tc, "getNextPhysicalLink", nextLink);
        }
        return nextLink;
    }
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;
    }
1271491
public Object next()
    {
        _current1.reset();
        if (_last1.key() == null)
            findFirst(_dstack);
        else
        {
            findNext(_dstack);
            if (_current1.key() == null)
                _eof = true;
        }

        if (_current1.key() != null)
            _last1.setLocation(_current1);

        return _current1.key();
    }
667155
@XmlElement(name = "nextPageLink")
    @JsonProperty(value = "nextPageLink")
    @ApiModelProperty(value = "The next pagination link.", position = 4)
    public PageRequestLinkDto getNextPageLink() {
        return nextPageLink;
    }
621649
public String getToLink() {

        if (m_link == null) {
            String target = toString();
            if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(target)) {
                m_link = substituteLink(getCmsObject(), target);
            } else {
                m_link = "";
            }
        }
        return m_link;
    }
903689
public Node nextSibling() {

		if (currentNode == null)
			return null;

		Node node = getNextSibling(currentNode);
		if (node != null)
			currentNode = node;

		return node;
	}
702464
E unlinkLast() {
    final E l = last;
    final E prev = l.getPrevious();
    l.setPrevious(null);
    last = prev;
    if (prev == null) {
      first = null;
    } else {
      prev.setNext(null);
    }
    return l;
  }
472933
@Override
  public Node next() {
    Node cur = this.nodelist.item(this.index);
    this.index++;
    return cur;
  }
887459
public Content getNavLinkNext() {
        Content li;
        if (next == null) {
            li = HtmlTree.LI(nextpackageLabel);
        } else {
            DocPath path = DocPath.relativePath(packageDoc, next);
            li = HtmlTree.LI(getHyperLink(path.resolve(DocPaths.profilePackageSummary(profileName)),
                nextpackageLabel, "", ""));
        }
        return li;
    }
1282442
public T next() {
		if(cachedNext == null) {
			throw new NoSuchElementException("call hasNext first!");
		}
		T o = cachedNext;
		cachedNext = null;
		return o;
	}
186709
public Content getNavLinkNext(DocPath next) {
        Content li;
        if (next != null) {
            li = HtmlTree.LI(getHyperLink(next, nextLabel, "", ""));
        }
        else
            li = HtmlTree.LI(nextLabel);
        return li;
    }
16280
public Entry getNext()
  {
    checkEntryParent();
    
    Entry entry = null;
    
    if(!isLast())
    {
      entry = next;
    }

    return entry;
  }
396528
public synchronized Entry next()
  {
    if (tc.isEntryEnabled())
      SibTr.entry(tc, "next");

    // can only do anything if the cursor is still pointing in to a list
    checkEntryParent();
    
    Entry nextEntry = null;
    
    synchronized(parentList)
    {
      //get the next entry in the list
      nextEntry = getNextEntry();
      //if the next entry is null
      if(nextEntry == null)
      {
        //then hopefully we're at the end of the list
        if(current == parentList.last)
        {
          //so move the cursor to the bottom of the list,
          //not pointing to any actual entry
          moveToBottom();
        }
        else if(!atBottom)                   
        {
          //it should not be possible for the next entry to be null but the current
          //not be the last one in the list or already at the bottom
          SIErrorException e = new SIErrorException(
            nls.getFormattedMessage(
              "INTERNAL_MESSAGING_ERROR_CWSIP0001",
              new Object[] { "Cursor", "1:160:1.15" },
              null));
    
          FFDCFilter.processException(
            e,
            "com.ibm.ws.sib.processor.utils.linkedlist.Cursor.next",
            "1:166:1.15",
            this);
      
          SibTr.exception(tc, e);      
    
          if (tc.isEntryEnabled())
            SibTr.exit(tc, "next", e);
    
          throw e;
        }
      }
      else
      {
        //move the cursor to the next entry
        moveCursor(nextEntry);
      }
    }
    
    if (tc.isEntryEnabled())
      SibTr.exit(tc, "next", nextEntry);

    return nextEntry;
  }
1191864
public T next() {
		if(MapUtil.isEmpty(this.weightMap)) {
			return null;
		}
		final double randomWeight = this.weightMap.lastKey() * random.nextDouble();
		final SortedMap<Double, T> tailMap = this.weightMap.tailMap(randomWeight, false);
		return this.weightMap.get(tailMap.firstKey());
	}
872693
public List<Link> getConnectedLinks(PhysicalElement pe) {
        List<Link> myLinks = new ArrayList<>();
        for (Link l : this.links) {
            if (l.getElement().equals(pe)) {
                myLinks.add(l);
            } else if (l.getSwitch().equals(pe)) {
                myLinks.add(l);
            }
        }
        return myLinks;
    }
334538
public synchronized Document next() {
        Document next = new StringDocument(nextLine);
        try {
            nextLine = documentsReader.readLine();

            // close the stream if there were no more lines
            if (nextLine == null) {
                documentsReader.close();
            }
        } catch (Throwable t) {
            t.printStackTrace();
            nextLine = null;
        }
        return next;
    }
456408
public String getNextString()
    {
        Object data = this.getNextData();
        if (data instanceof String)
            return (String)data;
        return null;    // EOF
    }