Extensions to the Map interface.
| Type Params | Return Type | Name and description |
|---|---|---|
<K, V> |
static V |
getOrCreate(Map<K, V> self, K key, Closure<V> create)Very similar to Groovy's Map.get(Object key, Object defaultValue)
method, but allows the default value to be created in a closure. |