@InterfaceAudience.Internal public class Maps extends Object
| Constructor and Description |
|---|
Maps() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> V |
getOrDefault(Map<K,V> map,
K key,
V defaultValue)
Return value if key is contained in the map, else return defauleValue.
|
public static <K,V> V getOrDefault(Map<K,V> map, K key, V defaultValue)
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.