private boolean validateExport(ExportPackageDescription matchingExport, ExportPackageDescription childExport) { Version matchingVersion = matchingExport.getVersion(); Version childVersion = childExport.getVersion(); if (!childVersion.equals(Version.emptyVersion) && !matchingVersion.equals(childVersion)) return false; if (!ResolverBundle.equivalentMaps(childExport.getAttributes(), matchingExport.getAttributes(), false)) return false; if (!ResolverBundle.equivalentMaps(childExport.getDirectives(), matchingExport.getDirectives(), false)) return false; return true; }
private boolean equivalentExports(ResolverExport existingExport, ExportPackageDescription newDescription) { ExportPackageDescription existingDescription = existingExport.getExportPackageDescription(); if (!existingDescription.getName().equals(newDescription.getName())) return false; if (!existingDescription.getVersion().equals(newDescription.getVersion())) return false; if (!equivalentMaps(existingDescription.getAttributes(), newDescription.getAttributes(), true)) return false; if (!equivalentMaps(existingDescription.getDirectives(), newDescription.getDirectives(), true)) return false; return true; }
private boolean equivalentExports(ResolverExport existingExport, ExportPackageDescription newDescription) { ExportPackageDescription existingDescription = existingExport.getExportPackageDescription(); if (!existingDescription.getName().equals(newDescription.getName())) return false; if (!existingDescription.getVersion().equals(newDescription.getVersion())) return false; if (!equivalentMaps(existingDescription.getAttributes(), newDescription.getAttributes(), true)) return false; if (!equivalentMaps(existingDescription.getDirectives(), newDescription.getDirectives(), true)) return false; return true; }
private boolean validateExport(ExportPackageDescription matchingExport, ExportPackageDescription childExport) { Version matchingVersion = matchingExport.getVersion(); Version childVersion = childExport.getVersion(); if (!childVersion.equals(Version.emptyVersion) && !matchingVersion.equals(childVersion)) return false; if (!ResolverBundle.equivalentMaps(childExport.getAttributes(), matchingExport.getAttributes(), false)) return false; if (!ResolverBundle.equivalentMaps(childExport.getDirectives(), matchingExport.getDirectives(), false)) return false; return true; }
private boolean equivalentExports(ResolverExport existingExport, ExportPackageDescription newDescription) { ExportPackageDescription existingDescription = existingExport.getExportPackageDescription(); if (!existingDescription.getName().equals(newDescription.getName())) return false; if (!existingDescription.getVersion().equals(newDescription.getVersion())) return false; if (!equivalentMaps(existingDescription.getAttributes(), newDescription.getAttributes(), true)) return false; if (!equivalentMaps(existingDescription.getDirectives(), newDescription.getDirectives(), true)) return false; return true; }
private boolean equivalentExports(ResolverExport existingExport, ExportPackageDescription newDescription) { ExportPackageDescription existingDescription = existingExport.getExportPackageDescription(); if (!existingDescription.getName().equals(newDescription.getName())) return false; if (!existingDescription.getVersion().equals(newDescription.getVersion())) return false; if (!equivalentMaps(existingDescription.getAttributes(), newDescription.getAttributes(), true)) return false; if (!equivalentMaps(existingDescription.getDirectives(), newDescription.getDirectives(), true)) return false; return true; }