Package groovy.lang
Class SpreadMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap
-
- groovy.lang.SpreadMap
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map
public class SpreadMap extends java.util.HashMap
Helper to turn a list with an even number of elements into a Map.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(SpreadMap that)
boolean
equals(java.lang.Object that)
int
hashCode()
java.lang.Object
put(java.lang.Object key, java.lang.Object value)
void
putAll(java.util.Map t)
java.lang.Object
remove(java.lang.Object key)
java.lang.String
toString()
-
-
-
Method Detail
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
- Specified by:
put
in interfacejava.util.Map
- Overrides:
put
in classjava.util.HashMap
-
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
remove
in interfacejava.util.Map
- Overrides:
remove
in classjava.util.HashMap
-
putAll
public void putAll(java.util.Map t)
- Specified by:
putAll
in interfacejava.util.Map
- Overrides:
putAll
in classjava.util.HashMap
-
equals
public boolean equals(java.lang.Object that)
- Specified by:
equals
in interfacejava.util.Map
- Overrides:
equals
in classjava.util.AbstractMap
-
equals
public boolean equals(SpreadMap that)
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map
- Overrides:
hashCode
in classjava.util.AbstractMap
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.util.AbstractMap
- Returns:
- the string expression of
this
-
-