|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.MapWithDefault
public final class MapWithDefault extends Object
A wrapper for Map which allows a default value to be specified.
Method Summary | |
---|---|
void
|
clear()
|
boolean
|
containsKey(Object key)
|
boolean
|
containsValue(Object value)
|
Set
|
entrySet()
|
boolean
|
equals(Object obj)
|
Object
|
get(Object key)
|
int
|
hashCode()
|
boolean
|
isEmpty()
|
Set
|
keySet()
|
static Map
|
newInstance(Map m, Closure initClosure)
|
Object
|
put(Object key, Object value)
|
void
|
putAll(Map m)
|
Object
|
remove(Object key)
|
int
|
size()
|
Collection
|
values()
|
Methods inherited from 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 entrySet()
@Override public boolean equals(Object obj)
public Object get(Object key)
@Override public int hashCode()
public boolean isEmpty()
public Set keySet()
public static Map newInstance(Map m, Closure initClosure)
public Object put(Object key, Object value)
public void putAll(Map m)
public Object remove(Object key)
public int size()
public Collection values()
Copyright © 2003-2013 The Codehaus. All rights reserved.