} else if (matchDiff > 0) { if (matchDiff == 1 && bestName.length() == bestMatchLen && getCharAt(currName, bestMatchLen) == '.') {  return false; } return true; } else { if (matchDiff == -1 && currName.length() == currMatchLen && getCharAt(bestName, currMatchLen) == '.') {  return true; } return false;
} else { return matchDiff > 0;
	private boolean isBetterMatch(String newName, String currName, String bestName, boolean preferCurr) {		int currMatchLen= getCommonPrefixLength(currName, newName);		int bestMatchLen= getCommonPrefixLength(bestName, newName);				int matchDiff= currMatchLen - bestMatchLen;				if (matchDiff == 0) {			if (currMatchLen == newName.length() && currMatchLen == currName.length() && currMatchLen == bestName.length()) {				// duplicate entry and complete match				return preferCurr;			} else {				return sameMatchLenTest(newName, bestName, currName, currMatchLen);			}		} else if (matchDiff > 0) { // curr has longer match			if (matchDiff == 1 && bestName.length() == bestMatchLen && getCharAt(currName, bestMatchLen) == '.') {				// best name has a complete match with new and curr only matches longer because of the dot -> best better				return false;			}			return true;		} else { // best has longer match			if (matchDiff == -1 && currName.length() == currMatchLen && getCharAt(bestName, currMatchLen) == '.') {				// curr name has a complete match with new and best only matches longer because of the dot -> curr better				return true;			}			return false;		}	}