|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap java.util.HashMap groovy.lang.SpreadMap
public class SpreadMap extends HashMap
Helper to turn a list with an even number of elements into a Map.
Constructor Summary | |
SpreadMap(Object[] values)
|
|
SpreadMap(Map map)
|
|
SpreadMap(List list)
@since 1.8.0 |
Method Summary | |
---|---|
boolean
|
equals(Object that)
|
boolean
|
equals(SpreadMap that)
|
int
|
hashCode()
|
Object
|
put(Object key, Object value)
|
void
|
putAll(Map t)
|
Object
|
remove(Object key)
|
String
|
toString()
@return the string expression of |
Methods inherited from class HashMap | |
---|---|
remove, get, put, values, clone, clear, isEmpty, size, entrySet, putAll, keySet, containsKey, containsValue, equals, toString, hashCode, wait, wait, wait, getClass, notify, notifyAll |
Methods inherited from class AbstractMap | |
---|---|
remove, get, put, equals, toString, values, hashCode, clear, isEmpty, size, entrySet, putAll, keySet, containsKey, containsValue, wait, wait, wait, getClass, notify, notifyAll |
Constructor Detail |
---|
public SpreadMap(Object[] values)
public SpreadMap(Map map)
public SpreadMap(List list)
list
- the list to make spreadable
Method Detail |
---|
public boolean equals(Object that)
public boolean equals(SpreadMap that)
public int hashCode()
public Object put(Object key, Object value)
public void putAll(Map t)
public Object remove(Object key)
public String toString()
this
Copyright © 2003-2013 The Codehaus. All rights reserved.