src/main/java/net/andreho/resources/impl/Utils.java
static void mergeResults(final Map<String, Resource> result, final Map<String, Resource> other) {

    for (final Map.Entry<String, Resource> entry : other.entrySet()) {
      final String key = entry.getKey();
      final Resource value = entry.getValue();

      result.merge(key, value, (prev, next) -> {
        next.setNext(prev);
        return next;
      });
    }
  }
/**
   * Merges multiple entries by name into the result map
   *
   * @param result
   * @param other
   */
Merges multiple entries by name into the result map
@param result
@param other
Merges multiple entries by name into the result map @param result @param other
static void mergeResults(final Map<String, Resource> result, final Map<String, Resource> other) {
    for (final Map.Entry<String, Resource> entry : other.entrySet()) {
      final String key = entry.getKey();
      final Resource value = entry.getValue();
      result.merge(key, value, (prev, next) -> {
        next.setNext(prev);
        return next;
      });
    }
  }
static void mergeResults ( final Map < String , Resource > result , final Map < String , Resource > other ) { for ( final Map . Entry < String , Resource > entry : other . entrySet ( ) ) { final String key = entry . getKey ( ) ; final Resource value = entry . getValue ( ) ; result . merge ( key , value , ( prev , next ) -> { next . setNext ( prev ) ; return next ; } ) ; } }
Merges multiple entries by name into the result map
 @param result
 @param other
Merges multiple entries by name into the result map @param result @param other