private static <K, V, M extends Map<K, V>> M combine(M a, M b) { b.forEach((k, v) -> putEntry(a, k, v)); return a; } }
private static <K, V, M extends Map<K, V>> void putEntry(M map, Map.Entry<K, V> entry) { putEntry(map, entry.getKey(), entry.getValue()); }
private static <K, V, M extends Map<K, V>> M combine(M a, M b) { b.forEach((k, v) -> putEntry(a, k, v)); return a; } }
private static <K, V, M extends Map<K, V>> void putEntry(M map, Map.Entry<K, V> entry) { putEntry(map, entry.getKey(), entry.getValue()); }