Package org.zkoss.bind.impl
Class AllocUtil
java.lang.Object
org.zkoss.bind.impl.AllocUtil
For ZK-2289, Memory allocation utility.
- Since:
- 7.0.3
- Author:
- henrichen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> Set<V>addLinkedHashSet(Set<V> set, V value) <V> List<V>Add value into the spcified list.<V> Set<V>Add value into the specified set.<V> Set<V>addWeakIdentityHashSet(Set<V> set, V value) <K,V> Map<K, V> newLinkedHashMap(int size) Prepare a suitable LinkedHashMap that optimize the space.processScript(Object script) Returns the processed script.<K,V> Map<K, V> putLinkedHashMap(Map<K, V> map, K key, V value) Put key, value into the specified LinkedHashMap.<K,V> Map<K, V> Put key, value into the specified map.
-
Field Details
-
inst
-
-
Constructor Details
-
AllocUtil
public AllocUtil()
-
-
Method Details
-
putMap
Put key, value into the specified map.- Parameters:
map- the map to be put key, value in.key- the keyvalue- the value- Returns:
- the map
-
putLinkedHashMap
Put key, value into the specified LinkedHashMap.- Parameters:
map- the LinkedHashMap to be put key, value in.key- the keyvalue- the value- Returns:
- the map
-
newLinkedHashMap
Prepare a suitable LinkedHashMap that optimize the space. -
addSet
Add value into the specified set.- Parameters:
set- the set to be add value invalue- the value- Returns:
- the set
-
addLinkedHashSet
-
addWeakIdentityHashSet
-
addList
Add value into the spcified list.- Parameters:
list- the list to be add value invalue- the value- Returns:
- the list
-
processScript
Returns the processed script.- Parameters:
script-
-