paulk-asert commented on code in PR #665:
URL:
https://github.com/apache/commons-collections/pull/665#discussion_r2621414983
##########
src/main/java/org/apache/commons/collections4/MultiMapUtils.java:
##########
@@ -170,6 +171,27 @@ public static boolean isEmpty(final MultiValuedMap<?, ?>
map) {
return map == null || map.isEmpty();
}
+ /**
+ * A utility method to invert the mappings from a source MultiValuedMap
+ * to a collector MultiValuedMap. If you are trying to create an
+ * inverse multimap of the same kind as the original, consider using
Review Comment:
Okay, the intention is that when calling `inverted` you have the following
input -> output class relationships:
ArrayListValuedHashMap -> ArrayListValuedHashMap
ArrayListValuedLinkedHashMap -> ArrayListValuedLinkedHashMap
LinkedHashSetValuedLinkedHashMap -> LinkedHashSetValuedLinkedHashMap
LinkedHashSetValuedHashMap -> LinkedHashSetValuedHashMap
I'll try to think of better wording.
--
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]