|
Groovy 1.7.9 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.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)
|
V
|
get(Object key)
|
int
|
hashCode()
|
boolean
|
isEmpty()
|
Set
|
keySet()
|
static Map
|
newInstance(Map m, Closure initClosure)
|
V
|
put(K key, V value)
|
void
|
putAll(Map m)
|
V
|
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 V get(Object key)
@Override public int hashCode()
public boolean isEmpty()
public Set keySet()
public static Map newInstance(Map m, Closure initClosure)
public V put(K key, V value)
public void putAll(Map m)
public V remove(Object key)
public int size()
public Collection values()
Copyright © 2003-2010 The Codehaus. All rights reserved.