Groovy 2.2.0

groovy.lang
[Java] Class MapWithDefault

java.lang.Object
  groovy.lang.MapWithDefault
All Implemented Interfaces:
Map

public final class MapWithDefault
extends Object

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

Authors:
Paul King
Since:
1.7.1


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

clear

public void clear()


containsKey

public boolean containsKey(Object key)


containsValue

public boolean containsValue(Object value)


entrySet

public Set entrySet()


equals

@Override
public boolean equals(Object obj)


get

public Object get(Object key)


hashCode

@Override
public int hashCode()


isEmpty

public boolean isEmpty()


keySet

public Set keySet()


newInstance

public static Map newInstance(Map m, Closure initClosure)


put

public Object put(Object key, Object value)


putAll

public void putAll(Map m)


remove

public Object remove(Object key)


size

public int size()


values

public Collection values()


 

Copyright © 2003-2013 The Codehaus. All rights reserved.