getOrDefault abstract method

V getOrDefault(
  1. K key,
  2. 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);