Class MapUtils


  • public final class MapUtils
    extends Object
    Map Utilities
    Author:
    Brian Wyka
    • Method Detail

      • mergeCollectionValues

        public static <K,​V> Map<K,​Collection<V>> mergeCollectionValues​(Map<K,​Collection<V>> one,
                                                                                   Map<K,​Collection<V>> two)
        Merge 2 maps containing collections as values
        Type Parameters:
        K - the type of the map's key
        V - the type of the map's value
        Parameters:
        one - the first map
        two - the second map
        Returns:
        the merged map