sebbASF commented on code in PR #665:
URL: 
https://github.com/apache/commons-collections/pull/665#discussion_r2623184640


##########
src/main/java/org/apache/commons/collections4/MultiMapUtils.java:
##########
@@ -170,6 +171,29 @@ public static boolean isEmpty(final MultiValuedMap<?, ?> 
map) {
         return map == null || map.isEmpty();
     }
 
+    /**
+     * A utility method to invert the mappings from an inputMultimap
+     * and add them to an outputMultimap. Some {@code MultiValuedMap}
+     * implementations support the {@link MultiValuedMap#inverted()} method.
+     * These typically return a new multimap instance with the same class as 
the original.
+     * Consider using this method instead if you wish to supply a particular
+     * type of multimap or wish to merge multiple multimap inverse mappings 
into a single multimap.
+     *
+     * @param inputMultimap take key-to-value mappings from here
+     * @param outputMultimap add value-to-key mappings here
+     * @param <K> the outputMultimap key type
+     * @param <V> the outputMultimap value type
+     * @param <M> the outputMultimap multimap with key and value types 
reversed compare to inputMultimap

Review Comment:
   compare to => compared with



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to