@Override public Set<String> getAdvertisedContracts() { return baseDescriptor.getAdvertisedContracts(); }
@Override public Set<String> getAdvertisedContracts() { return baseDescriptor.getAdvertisedContracts(); }
@Override public Set<String> getAdvertisedContracts() { return baseDescriptor.getAdvertisedContracts(); }
@Override public Set<String> getAdvertisedContracts() { return baseDescriptor.getAdvertisedContracts(); }
@Override public String getAdvertisedContract() { Set<String> contracts = filterDescriptor.getAdvertisedContracts(); if (contracts == null || contracts.isEmpty()) return null; return contracts.iterator().next(); }
/* package */ static String getBestContract(Descriptor d) { String impl = d.getImplementation(); Set<String> contracts = d.getAdvertisedContracts(); if (contracts.contains(impl)) return impl; for (String candidate : contracts) { return candidate; } return impl; }
/* package */ static String getBestContract(Descriptor d) { String impl = d.getImplementation(); Set<String> contracts = d.getAdvertisedContracts(); if (contracts.contains(impl)) return impl; for (String candidate : contracts) { return candidate; } return impl; }
/* package */ static String getBestContract(Descriptor d) { String impl = d.getImplementation(); Set<String> contracts = d.getAdvertisedContracts(); if (contracts.contains(impl)) return impl; for (String candidate : contracts) { return candidate; } return impl; }
/* package */ static String getBestContract(Descriptor d) { String impl = d.getImplementation(); Set<String> contracts = d.getAdvertisedContracts(); if (contracts.contains(impl)) return impl; for (String candidate : contracts) { return candidate; } return impl; }
private static void checkDescriptor(Descriptor d) { if (d == null) throw new IllegalArgumentException(); if (d.getImplementation() == null) throw new IllegalArgumentException(); if (d.getAdvertisedContracts() == null) throw new IllegalArgumentException(); if (d.getDescriptorType() == null) throw new IllegalArgumentException(); if (d.getDescriptorVisibility() == null) throw new IllegalArgumentException(); if (d.getMetadata() == null) throw new IllegalArgumentException(); if (d.getQualifiers() == null) throw new IllegalArgumentException(); }
private static void checkDescriptor(Descriptor d) { if (d == null) throw new IllegalArgumentException(); if (d.getImplementation() == null) throw new IllegalArgumentException(); if (d.getAdvertisedContracts() == null) throw new IllegalArgumentException(); if (d.getDescriptorType() == null) throw new IllegalArgumentException(); if (d.getDescriptorVisibility() == null) throw new IllegalArgumentException(); if (d.getMetadata() == null) throw new IllegalArgumentException(); if (d.getQualifiers() == null) throw new IllegalArgumentException(); }
private static void checkDescriptor(Descriptor d) { if (d == null) throw new IllegalArgumentException(); if (d.getImplementation() == null) throw new IllegalArgumentException(); if (d.getAdvertisedContracts() == null) throw new IllegalArgumentException(); if (d.getDescriptorType() == null) throw new IllegalArgumentException(); if (d.getDescriptorVisibility() == null) throw new IllegalArgumentException(); if (d.getMetadata() == null) throw new IllegalArgumentException(); if (d.getQualifiers() == null) throw new IllegalArgumentException(); }
private static void checkDescriptor(Descriptor d) { if (d == null) throw new IllegalArgumentException(); if (d.getImplementation() == null) throw new IllegalArgumentException(); if (d.getAdvertisedContracts() == null) throw new IllegalArgumentException(); if (d.getDescriptorType() == null) throw new IllegalArgumentException(); if (d.getDescriptorVisibility() == null) throw new IllegalArgumentException(); if (d.getMetadata() == null) throw new IllegalArgumentException(); if (d.getQualifiers() == null) throw new IllegalArgumentException(); }
@Override public boolean matches(Descriptor d) { for (Filter filter : allFilters) { if (filter instanceof IndexedFilter) { IndexedFilter iFilter = (IndexedFilter) filter; String name = iFilter.getName(); if (name != null) { if (!GeneralUtilities.safeEquals(name, d.getName())) continue; } String contract = iFilter.getAdvertisedContract(); if (contract != null) { if (!d.getAdvertisedContracts().contains(contract)) continue; } } if (filter.matches(d)) return true; } return false; }
@Override public boolean matches(Descriptor d) { for (Filter filter : allFilters) { if (filter instanceof IndexedFilter) { IndexedFilter iFilter = (IndexedFilter) filter; String name = iFilter.getName(); if (name != null) { if (!GeneralUtilities.safeEquals(name, d.getName())) continue; } String contract = iFilter.getAdvertisedContract(); if (contract != null) { if (!d.getAdvertisedContracts().contains(contract)) continue; } } if (filter.matches(d)) return true; } return false; }
@Override public boolean matches(Descriptor d) { for (Filter filter : allFilters) { if (filter instanceof IndexedFilter) { IndexedFilter iFilter = (IndexedFilter) filter; String name = iFilter.getName(); if (name != null) { if (!GeneralUtilities.safeEquals(name, d.getName())) continue; } String contract = iFilter.getAdvertisedContract(); if (contract != null) { if (!d.getAdvertisedContracts().contains(contract)) continue; } } if (filter.matches(d)) return true; } return false; }
@Override public boolean matches(Descriptor d) { for (Filter filter : allFilters) { if (filter instanceof IndexedFilter) { IndexedFilter iFilter = (IndexedFilter) filter; String name = iFilter.getName(); if (name != null) { if (!GeneralUtilities.safeEquals(name, d.getName())) continue; } String contract = iFilter.getAdvertisedContract(); if (contract != null) { if (!d.getAdvertisedContracts().contains(contract)) continue; } } if (filter.matches(d)) return true; } return false; }
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; }