public class MapUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <K,V> void |
putNonNull(Map<K,V> map,
K key,
V value)
Add a key value pair to the map iff key and value are not null.
|
public static <K,V> void putNonNull(Map<K,V> map, K key, V value)
map
- the map to add to, must not be nullkey
- the key to addvalue
- the value to addCopyright © 2019 Communote team. All rights reserved.