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
Helper to turn a list with an even number of elements into a Map.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> 
- 
Constructor SummaryConstructors
- 
Method SummaryMethods 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
- 
Constructor Details- 
SpreadMap
- 
SpreadMap
- 
SpreadMap- Parameters:
- list- the list to make spreadable
- Since:
- 1.8.0
 
 
- 
- 
Method Details- 
put
- 
remove
- 
putAll
- 
equals- Specified by:
- equalsin interface- Map
- Overrides:
- equalsin class- AbstractMap
 
- 
equals
- 
hashCodepublic int hashCode()- Specified by:
- hashCodein interface- Map
- Overrides:
- hashCodein class- AbstractMap
 
- 
toString- Overrides:
- toStringin class- AbstractMap
- Returns:
- the string expression of this
 
 
-