Here you can find the source of putAllIfNotNull(final Map super K, ? super V> map, final Map extends K, ? extends V> m)
public static <K, V> boolean putAllIfNotNull(final Map<? super K, ? super V> map, final Map<? extends K, ? extends V> m)
//package com.java2s; //License from project: Apache License import java.util.Map; public class Main { public static <K, V> boolean putAllIfNotNull(final Map<? super K, ? super V> map, final Map<? extends K, ? extends V> m) { if ((map == null) || (m == null)) { return false; }/* w ww . ja va2 s .c o m*/ map.putAll(m); return true; } }