|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.MapWithDefault
public final class MapWithDefault extends java.lang.Object
A wrapper for Map which allows a default value to be specified.
Method Summary | |
---|---|
void
|
clear()
|
boolean
|
containsKey(java.lang.Object key)
|
boolean
|
containsValue(java.lang.Object value)
|
java.util.Set
|
entrySet()
|
boolean
|
equals(java.lang.Object obj)
|
java.lang.Object
|
get(java.lang.Object key)
|
int
|
hashCode()
|
boolean
|
isEmpty()
|
java.util.Set
|
keySet()
|
static java.util.Map
|
newInstance(java.util.Map m, Closure initClosure)
|
java.lang.Object
|
put(java.lang.Object key, java.lang.Object value)
|
void
|
putAll(java.util.Map m)
|
java.lang.Object
|
remove(java.lang.Object key)
|
int
|
size()
|
java.util.Collection
|
values()
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
public void clear()
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public java.util.Set entrySet()
@Override public boolean equals(java.lang.Object obj)
public java.lang.Object get(java.lang.Object key)
@Override public int hashCode()
public boolean isEmpty()
public java.util.Set keySet()
public static java.util.Map newInstance(java.util.Map m, Closure initClosure)
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
public void putAll(java.util.Map m)
public java.lang.Object remove(java.lang.Object key)
public int size()
public java.util.Collection values()
Groovy Documentation