src/main/java/net/andreho/resources/ResourceSourceLocator.java
static ResourceSourceLocator locatorsList(final Collection<ResourceSourceLocator> resourceSourceLocators) {
    final ResourceSourceLocator[] locators = resourceSourceLocators.toArray(new ResourceSourceLocator[0]);

    return (classLoader) -> {
      final Collection<URL> urls = new LinkedHashSet<>();
      for (ResourceSourceLocator locator : locators) {
        urls.addAll(locator.locateResources(classLoader));
      }
      return urls;
    };
  }
/**
   * @param resourceSourceLocators  to merge
   * @return a merged version that uses all given locators as source
   */
@param resourceSourceLocators  to merge
@return a merged version that uses all given locators as source
@param resourceSourceLocators to merge @return a merged version that uses all given locators as source
static ResourceSourceLocator locatorsList(final Collection<ResourceSourceLocator> resourceSourceLocators) {
    final ResourceSourceLocator[] locators = resourceSourceLocators.toArray(new ResourceSourceLocator[0]);
    return (classLoader) -> {
      final Collection<URL> urls = new LinkedHashSet<>();
      for (ResourceSourceLocator locator : locators) {
        urls.addAll(locator.locateResources(classLoader));
      }
      return urls;
    };
  }
static ResourceSourceLocator locatorsList ( final Collection < ResourceSourceLocator > resourceSourceLocators ) { final ResourceSourceLocator [ ] locators = resourceSourceLocators . toArray ( new ResourceSourceLocator [ 0 ] ) ; return ( classLoader ) -> { final Collection < URL > urls = new LinkedHashSet < > ( ) ; for ( ResourceSourceLocator locator : locators ) { urls . addAll ( locator . locateResources ( classLoader ) ) ; } return urls ; } ; }
@param resourceSourceLocators  to merge
 @return a merged version that uses all given locators as source
@param resourceSourceLocators to merge @return a merged version that uses all given locators as source