private static <T> boolean equalMetadata(Map<String, List<String>> a, Map<String, List<String>> b) { if (a == b) return true; if (a == null) return false; if (b == null) return false; if (a.size() != b.size()) return false; for (Map.Entry<String, List<String>> entry : a.entrySet()) { String aKey = entry.getKey(); List<String> aValue = entry.getValue(); List<String> bValue = b.get(aKey); if (bValue == null) return false; if (!equalOrderedCollection(aValue, bValue)) return false; } return true; }
private static <T> boolean equalMetadata(Map<String, List<String>> a, Map<String, List<String>> b) { if (a == b) return true; if (a == null) return false; if (b == null) return false; if (a.size() != b.size()) return false; for (Map.Entry<String, List<String>> entry : a.entrySet()) { String aKey = entry.getKey(); List<String> aValue = entry.getValue(); List<String> bValue = b.get(aKey); if (bValue == null) return false; if (!equalOrderedCollection(aValue, bValue)) return false; } return true; }
private static <T> boolean equalMetadata(Map<String, List<String>> a, Map<String, List<String>> b) { if (a == b) return true; if (a == null) return false; if (b == null) return false; if (a.size() != b.size()) return false; for (Map.Entry<String, List<String>> entry : a.entrySet()) { String aKey = entry.getKey(); List<String> aValue = entry.getValue(); List<String> bValue = b.get(aKey); if (bValue == null) return false; if (!equalOrderedCollection(aValue, bValue)) return false; } return true; }
private static <T> boolean equalMetadata(Map<String, List<String>> a, Map<String, List<String>> b) { if (a == b) return true; if (a == null) return false; if (b == null) return false; if (a.size() != b.size()) return false; for (Map.Entry<String, List<String>> entry : a.entrySet()) { String aKey = entry.getKey(); List<String> aValue = entry.getValue(); List<String> bValue = b.get(aKey); if (bValue == null) return false; if (!equalOrderedCollection(aValue, bValue)) return false; } return true; }
public boolean equals(Object a) { if (a == null) return false; if (!(a instanceof Descriptor)) return false; Descriptor d = (Descriptor) a; if (!GeneralUtilities.safeEquals(implementation, d.getImplementation())) return false; if (!equalOrderedCollection((contracts == null) ? EMPTY_CONTRACTS_SET : contracts, d.getAdvertisedContracts())) return false; if (!GeneralUtilities.safeEquals(name, d.getName())) return false; if (!GeneralUtilities.safeEquals(scope, d.getScope())) return false; if (!equalOrderedCollection((qualifiers == null) ? EMPTY_QUALIFIER_SET : qualifiers, d.getQualifiers())) return false; if (!GeneralUtilities.safeEquals(descriptorType, d.getDescriptorType())) return false; if (!GeneralUtilities.safeEquals(descriptorVisibility, d.getDescriptorVisibility())) return false; if (!equalMetadata((metadatas == null) ? EMPTY_METADATAS_MAP : metadatas, d.getMetadata())) return false; if (!GeneralUtilities.safeEquals(proxiable, d.isProxiable())) return false; if (!GeneralUtilities.safeEquals(proxyForSameScope, d.isProxyForSameScope())) return false; if (!GeneralUtilities.safeEquals(analysisName, d.getClassAnalysisName())) return false; return true; }
public boolean equals(Object a) { if (a == null) return false; if (!(a instanceof Descriptor)) return false; Descriptor d = (Descriptor) a; if (!GeneralUtilities.safeEquals(implementation, d.getImplementation())) return false; if (!equalOrderedCollection((contracts == null) ? EMPTY_CONTRACTS_SET : contracts, d.getAdvertisedContracts())) return false; if (!GeneralUtilities.safeEquals(name, d.getName())) return false; if (!GeneralUtilities.safeEquals(scope, d.getScope())) return false; if (!equalOrderedCollection((qualifiers == null) ? EMPTY_QUALIFIER_SET : qualifiers, d.getQualifiers())) return false; if (!GeneralUtilities.safeEquals(descriptorType, d.getDescriptorType())) return false; if (!GeneralUtilities.safeEquals(descriptorVisibility, d.getDescriptorVisibility())) return false; if (!equalMetadata((metadatas == null) ? EMPTY_METADATAS_MAP : metadatas, d.getMetadata())) return false; if (!GeneralUtilities.safeEquals(proxiable, d.isProxiable())) return false; if (!GeneralUtilities.safeEquals(proxyForSameScope, d.isProxyForSameScope())) return false; if (!GeneralUtilities.safeEquals(analysisName, d.getClassAnalysisName())) return false; return true; }
public boolean equals(Object a) { if (a == null) return false; if (!(a instanceof Descriptor)) return false; Descriptor d = (Descriptor) a; if (!GeneralUtilities.safeEquals(implementation, d.getImplementation())) return false; if (!equalOrderedCollection((contracts == null) ? EMPTY_CONTRACTS_SET : contracts, d.getAdvertisedContracts())) return false; if (!GeneralUtilities.safeEquals(name, d.getName())) return false; if (!GeneralUtilities.safeEquals(scope, d.getScope())) return false; if (!equalOrderedCollection((qualifiers == null) ? EMPTY_QUALIFIER_SET : qualifiers, d.getQualifiers())) return false; if (!GeneralUtilities.safeEquals(descriptorType, d.getDescriptorType())) return false; if (!GeneralUtilities.safeEquals(descriptorVisibility, d.getDescriptorVisibility())) return false; if (!equalMetadata((metadatas == null) ? EMPTY_METADATAS_MAP : metadatas, d.getMetadata())) return false; if (!GeneralUtilities.safeEquals(proxiable, d.isProxiable())) return false; if (!GeneralUtilities.safeEquals(proxyForSameScope, d.isProxyForSameScope())) return false; if (!GeneralUtilities.safeEquals(analysisName, d.getClassAnalysisName())) return false; return true; }
if (!equalOrderedCollection(a.getAdvertisedContracts(), b.getAdvertisedContracts())) return false; if (!GeneralUtilities.safeEquals(a.getName(), b.getName())) return false; if (!GeneralUtilities.safeEquals(a.getScope(), b.getScope())) return false; if (!equalOrderedCollection(a.getQualifiers(), b.getQualifiers())) return false; if (!GeneralUtilities.safeEquals(a.getDescriptorType(), b.getDescriptorType())) return false; if (!GeneralUtilities.safeEquals(a.getDescriptorVisibility(), b.getDescriptorVisibility())) return false;