|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.util.MinMapUtil
public class MinMapUtil
Minimizes Map memory usage by changing the map instance based on the number of stored entries.
Method Summary | ||
---|---|---|
static
|
put(Map<K,V> map,
K key,
V value)
Puts a mapping into a map, returns a map with the mapping. |
|
static
|
putAll(Map<K,V> dest,
Map<K,V> src)
Puts a number of entries into a map, returns a map. |
|
static
|
remove(Map<K,V> map,
K key)
Removes a mapping by key from a map, returns the map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <K,V> Map<K,V> put(Map<K,V> map, K key, V value)
map
- destinationpublic static <K,V> Map<K,V> putAll(Map<K,V> dest, Map<K,V> src)
dest
- destination mapsrc
- source mappublic static <K,V> Map<K,V> remove(Map<K,V> map, K key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |