|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.util.HashMapUtils
| Constructor Summary | |
protected |
HashMapUtils()
|
| Method Summary | |
static int |
calcCapacity(int size)
Calculates initial capacity needed to hold size elements in
a HashMap or Hashtable without forcing an expensive increase in internal
capacity. |
static java.util.HashMap |
merge(java.util.Map map1,
java.util.Map map2)
Creates a new HashMap that has all of the elements
of map1 and map2 (on key collision, the latter
override the former). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected HashMapUtils()
| Method Detail |
public static final int calcCapacity(int size)
size elements in
a HashMap or Hashtable without forcing an expensive increase in internal
capacity. Capacity is based on the default load factor of .75.
Usage: Map map = new HashMap(HashMapUtils.calcCapacity(10));
size - the number of items that will be put into a HashMap
public static java.util.HashMap merge(java.util.Map map1,
java.util.Map map2)
HashMap that has all of the elements
of map1 and map2 (on key collision, the latter
override the former).
map1 - the fist hashmap to mergemap2 - the second hashmap to merge
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||