Lines Matching refs:bestMatch
256 ConfigurationDescriptor bestMatch = null; in findMostRelevantConfigurationFromInstallHashDir() local
275 bestMatch = candidate; in findMostRelevantConfigurationFromInstallHashDir()
278 if (bestMatch.getVersion().equals(candidate.getVersion())) { in findMostRelevantConfigurationFromInstallHashDir()
279 if (bestMatch.getConfig().lastModified() < candidate.getConfig().lastModified()) { in findMostRelevantConfigurationFromInstallHashDir()
280 bestMatch = candidate; in findMostRelevantConfigurationFromInstallHashDir()
283 if (candidate.getVersion().isGreaterEqualTo(bestMatch.getVersion())) in findMostRelevantConfigurationFromInstallHashDir()
284 bestMatch = candidate; in findMostRelevantConfigurationFromInstallHashDir()
288 return bestMatch; in findMostRelevantConfigurationFromInstallHashDir()
295 ConfigurationDescriptor bestMatch = null; in findMostRelevantConfigurationFromProductId() local
313 bestMatch = candidates.get(candidates.size() - 1); in findMostRelevantConfigurationFromProductId()
316 if (bestMatch == null) { in findMostRelevantConfigurationFromProductId()
319 bestMatch = candidatesWithUnkonwArchitecture.get(candidatesWithUnkonwArchitecture.size() - 1); in findMostRelevantConfigurationFromProductId()
323 return bestMatch; in findMostRelevantConfigurationFromProductId()