[Java] Class SpreadMap
public class SpreadMap
extends HashMap
Helper to turn a list with an even number of elements into a Map.
Constructor Summary
Methods Summary
Inherited Methods Summary
Inherited Methods
Methods inherited from class | Name |
class HashMap | remove, remove, get, put, values, clone, clear, isEmpty, replace, replace, replaceAll, size, merge, entrySet, putAll, putIfAbsent, compute, forEach, containsKey, computeIfAbsent, containsValue, keySet, getOrDefault, computeIfPresent, equals, toString, hashCode, wait, wait, wait, getClass, notify, notifyAll |
Constructor Detail
public SpreadMap(Object[] values)
public SpreadMap(Map map)
public SpreadMap(List list)
- Since:
- 1.8.0
- Parameters:
-
list
- the list to make spreadable
Method Detail
@Override public boolean equals(Object that)
public boolean equals(SpreadMap that)
@Override public int hashCode()
public void putAll(Map t)
public String toString()
- Returns:
- the string expression of
this