MapWithDefaultExt<K extends Object, V extends Object> extension

Extension to wrap a map with a default value for missing keys.

on

Methods

withDefault(V defaultValue) MapDefaultExtensions<K, V>

Available on Map<K, V>, provided by the MapWithDefaultExt extension

Returns a MapDefaultExtensions view that returns defaultValue for missing keys.