getOrDefault abstract method
V
getOrDefault(
- K key,
- V defaultValue
Returns the value corresponding to the given key
, or defaultValue
if such a key is not present in the map.
Implementation
V getOrDefault(K key, V defaultValue);