public class AllocUtil
extends java.lang.Object
Constructor and Description |
---|
AllocUtil() |
Modifier and Type | Method and Description |
---|---|
<V> java.util.Set<V> |
addLinkedHashSet(java.util.Set<V> set,
V value) |
<V> java.util.List<V> |
addList(java.util.List<V> list,
V value)
Add value into the spcified list.
|
<V> java.util.Set<V> |
addSet(java.util.Set<V> set,
V value)
Add value into the specified set.
|
<V> java.util.Set<V> |
addWeakIdentityHashSet(java.util.Set<V> set,
V value) |
<K,V> java.util.Map<K,V> |
newLinkedHashMap(int size)
Prepare a suitable LinkedHashMap that optimize the space.
|
java.lang.Object |
processScript(java.lang.Object script)
Returns the processed script.
|
<K,V> java.util.Map<K,V> |
putLinkedHashMap(java.util.Map<K,V> map,
K key,
V value)
Put key, value into the specified LinkedHashMap.
|
<K,V> java.util.Map<K,V> |
putMap(java.util.Map<K,V> map,
K key,
V value)
Put key, value into the specified map.
|
public static AllocUtil inst
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 valuepublic <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 valuepublic <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 valuepublic <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 valuepublic java.lang.Object processScript(java.lang.Object script)
script
- Copyright © 2005-2018 Potix Corporation. All Rights Reserved.