public final class MapUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <K,V> void |
putAllIfAbsent(Map<K,V> target,
Map<K,V> source)
Puts entries from the
source map into the target map, but without overriding
any existing entry in target map, i.e. |
public static <K,V> void putAllIfAbsent(Map<K,V> target, Map<K,V> source)
source
map into the target
map, but without overriding
any existing entry in target
map, i.e. put only if the key does not exist in the
target
map.K
- KeyV
- Valuetarget
- The target map where to put new entries.source
- The source map from which read the entries.Copyright © 2017. All rights reserved.