@Override public SortedSet<ResourceDescriptor> find(String repoId, String bsn, VersionRange range) throws Exception { TreeSet<ResourceDescriptor> result = new TreeSet<>(RESOURCE_DESCRIPTOR_COMPARATOR); for (ResourceDescriptorImpl r : filter(repoId, null)) { if (!bsn.equals(r.bsn)) continue; if (range != null && !range.includes(r.version)) continue; result.add(r); } return result; }
@Override public SortedSet<ResourceDescriptor> find(String repoId, String bsn, VersionRange range) throws Exception { TreeSet<ResourceDescriptor> result = new TreeSet<>(RESOURCE_DESCRIPTOR_COMPARATOR); for (ResourceDescriptorImpl r : filter(repoId, null)) { if (!bsn.equals(r.bsn)) continue; if (range != null && !range.includes(r.version)) continue; result.add(r); } return result; }
public SortedSet<ResourceDescriptor> find(String repoId, String bsn, VersionRange range) throws Exception { TreeSet<ResourceDescriptor> result = new TreeSet<ResourceDescriptor>(RESOURCE_DESCRIPTOR_COMPARATOR); for (ResourceDescriptorImpl r : filter(repoId, null)) { if (!bsn.equals(r.bsn)) continue; if (range != null && !range.includes(r.version)) continue; result.add(r); } return result; }
public SortedSet<ResourceDescriptor> find(String repoId, String bsn, VersionRange range) throws Exception { TreeSet<ResourceDescriptor> result = new TreeSet<ResourceDescriptor>(RESOURCE_DESCRIPTOR_COMPARATOR); for (ResourceDescriptorImpl r : filter(repoId, null)) { if (!bsn.equals(r.bsn)) continue; if (range != null && !range.includes(r.version)) continue; result.add(r); } return result; }