org.compiere.util
Class WeakArrayList<T>
java.lang.Object
org.compiere.util.WeakArrayList<T>
- Type Parameters:
T -
public class WeakArrayList<T>
- extends Object
- Author:
- dzhao
implements a basic "weak" array so that if only reference to the object is this array, then that object is gc'able
This is primarily used in cache situation.
TODO: may need to synchronize method calls
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static CLogger log
- Logger
WeakArrayList
public WeakArrayList()
add
public boolean add(T value)
size
public int size()
contains
public boolean contains(T value)
get
public T get(int i)
remove
public void remove(int i)
Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.