Am I missing something, or is there really no default implementation of Apache's new MultiValuedMap that could be used to simply wrap provided Map<K, ? extends Collection<V>>?
In other words, I am looking for a direct replacement of the now deprecated MapUtils.multiValueMap factory method: none of existing implementations like HashSetValuedHashMap meet my needs as I need to use IdentifyHashMap as backend map
In the end I had to implement necessary helper method myself:
Though, with how trivial the implementation is, I cannot believe it is not there in
commons-collectionsalready.