groovy.lang
Class SpreadMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended bygroovy.lang.SpreadMap
All Implemented Interfaces:
Cloneable, Map, Serializable

public class SpreadMap
extends HashMap

Represents a spreadable map which extends java.util.HashMap.

Version:
$Revision: 4098 $
Author:
Pilho Kim
See Also:
Serialized Form

Constructor Summary
SpreadMap(Map map)
           
SpreadMap(Object[] values)
           
 
Method Summary
 boolean equals(Object that)
           
 boolean equals(SpreadMap that)
           
 Object get(Object obj)
           
 int hashCode()
           
 Object put(Object key, Object value)
           
 void putAll(Map t)
           
 Object remove(Object key)
           
 int size()
           
 String toString()
          Returns the string expression of this.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpreadMap

public SpreadMap(Object[] values)

SpreadMap

public SpreadMap(Map map)
Method Detail

get

public Object get(Object obj)

put

public Object put(Object key,
                  Object value)

remove

public Object remove(Object key)

putAll

public void putAll(Map t)

size

public int size()

equals

public boolean equals(Object that)

equals

public boolean equals(SpreadMap that)

hashCode

public int hashCode()

toString

public String toString()
Returns the string expression of this.

Returns:
the string expression of this


Copyright © 2003-2007 The Codehaus. All Rights Reserved.