break; } else if (cmp == 0 && m.getNodeId() == next.getNodeId()) break; if (next.nextMatch == null) {
return; } else if(next.nextMatch == null) {
	public void addMatch(Match m) {		if (match == null) {			match = m;			match.prevMatch = null;			match.nextMatch = null;			return;		}		Match next = match;		int cmp;		while (true) {			cmp = m.compareTo(next);			if (cmp < 0) {				if (next.prevMatch != null)					next.prevMatch.nextMatch = m;				else					match = m;				m.prevMatch = next.prevMatch;				next.prevMatch = m;				m.nextMatch = next;				break;			} else if (cmp == 0 && m.getNodeId() == next.getNodeId())				break;			if (next.nextMatch == null) {				next.nextMatch = m;				m.prevMatch = next;				m.nextMatch = null;				break;			}			next = next.nextMatch;		}	}