Package groovy.lang
Class SpreadMap
- java.lang.Object
- 
- java.util.AbstractMap<K,V>
- 
- java.util.HashMap
- 
- groovy.lang.SpreadMap
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable,- Map
 
 public class SpreadMap extends HashMap Helper to turn a list with an even number of elements into a Map.- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(SpreadMap that)booleanequals(Object that)inthashCode()Objectput(Object key, Object value)voidputAll(Map t)Objectremove(Object key)StringtoString()- 
Methods inherited from class java.util.HashMapclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
 
- 
 
- 
- 
- 
Method Detail- 
putAllpublic void putAll(Map t) 
 - 
equalspublic boolean equals(Object that) - Specified by:
- equalsin interface- Map
- Overrides:
- equalsin class- AbstractMap
 
 - 
equalspublic boolean equals(SpreadMap that) 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein interface- Map
- Overrides:
- hashCodein class- AbstractMap
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- AbstractMap
- Returns:
- the string expression of this
 
 
- 
 
-