public final class MapWithDefault<K, V> extends Object implements Map
A wrapper for Map which allows a default value to be specified.
| Type Params | Return Type | Name and description |
|---|---|---|
public void |
clear() | |
public boolean |
containsKey(Object key) | |
public boolean |
containsValue(Object value) | |
public Set<Map.Entry<K, V>> |
entrySet() | |
public boolean |
equals(Object obj) | |
public V |
get(Object key) | |
public int |
hashCode() | |
public boolean |
isEmpty() | |
public Set<K> |
keySet() | |
<K, V> | public static Map<K, V> |
newInstance(Map<K, V> m, Closure initClosure) |
public V |
put(K key, V value) | |
public void |
putAll(Map<? extends K, ? extends V> m) | |
public V |
remove(Object key) | |
public int |
size() | |
public Collection<V> |
values() |
| Methods inherited from class | Name |
|---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/lang/MapWithDefault.html