public class EasyHash<K,V>
extends java.util.HashMap<K,V>
EasyHash eh=new EasyHash(new Object[] {
"a",new Integer(1),
"b",new Integer(2),
"c",new Integer(3),
"d",new Integer(4)
});
HashMap
,
Serialized FormConstructor and Description |
---|
EasyHash(java.lang.Object... a)
Creates new EasyHash from an array of objects.
|
Modifier and Type | Method and Description |
---|---|
void |
setArray(java.lang.Object... a)
Adds the given objects to this EasyHash.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public EasyHash(java.lang.Object... a)
a
- The objects to be fed to setArray
.
a[n]
will be associated with a[n+1]
.
The number of elements in a
should therefore be
even. If it isn't, the last element will be ignored.Copyright 2004-2015 Wandora Team