Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Implemented
-
3.2
-
None
-
None
Description
Add method MapUtils.putIfNotNull that adds the given value to the map only if it is not null.
Possible implementation:
public static <K, V> void putIfNotNull(Map<K, V> map, K key, V value) {
if (value != null)
}