[Java] Class MapWithDefault<K, V>

  • groovy.lang.MapWithDefault
All Implemented Interfaces and Traits:
Map
public final class MapWithDefault<K, V>
extends Object
implements Map

A wrapper for Map which allows a default value to be specified.

Since:
1.7.1

Methods Summary

Methods
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()

Inherited Methods Summary

Inherited Methods
Methods inherited from class Name
class Object wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll

Method Detail

public void clear()

public boolean containsKey(Object key)

public boolean containsValue(Object value)

public Set<Map.Entry<K, V>> entrySet()

@Override public boolean equals(Object obj)

public V get(Object key)

@Override 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()

© 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