|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.bind.impl.AllocUtil
public class AllocUtil
For ZK-2289, Memory allocation utility.
Field Summary | |
---|---|
static AllocUtil |
inst
|
Constructor Summary | |
---|---|
AllocUtil()
|
Method Summary | ||
---|---|---|
|
addLinkedHashSet(java.util.Set<V> set,
V value)
|
|
|
addList(java.util.List<V> list,
V value)
Add value into the spcified list. |
|
|
addSet(java.util.Set<V> set,
V value)
Add value into the specified set. |
|
|
addWeakIdentityHashSet(java.util.Set<V> set,
V value)
|
|
|
newLinkedHashMap(int size)
Prepare a suitable LinkedHashMap that optimize the space. |
|
java.lang.Object |
processScript(java.lang.Object script)
Returns the processed script. |
|
|
putLinkedHashMap(java.util.Map<K,V> map,
K key,
V value)
Put key, value into the specified LinkedHashMap. |
|
|
putMap(java.util.Map<K,V> map,
K key,
V value)
Put key, value into the specified map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static AllocUtil inst
Constructor Detail |
---|
public AllocUtil()
Method Detail |
---|
public <K,V> java.util.Map<K,V> putMap(java.util.Map<K,V> map, K key, V value)
map
- the map to be put key, value in.key
- the keyvalue
- the value
public <K,V> java.util.Map<K,V> putLinkedHashMap(java.util.Map<K,V> map, K key, V value)
map
- the LinkedHashMap to be put key, value in.key
- the keyvalue
- the value
public <K,V> java.util.Map<K,V> newLinkedHashMap(int size)
public <V> java.util.Set<V> addSet(java.util.Set<V> set, V value)
set
- the set to be add value invalue
- the value
public <V> java.util.Set<V> addLinkedHashSet(java.util.Set<V> set, V value)
public <V> java.util.Set<V> addWeakIdentityHashSet(java.util.Set<V> set, V value)
public <V> java.util.List<V> addList(java.util.List<V> list, V value)
list
- the list to be add value invalue
- the value
public java.lang.Object processScript(java.lang.Object script)
script
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |