Compiere 3.1

org.compiere.util
Class WeakArrayList<T>

java.lang.Object
  extended by 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

Field Summary
protected static CLogger log
          Logger
 
Constructor Summary
WeakArrayList()
           
 
Method Summary
 boolean add(T value)
           
 boolean contains(T value)
           
 T get(int i)
           
 void remove(int i)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static CLogger log
Logger

Constructor Detail

WeakArrayList

public WeakArrayList()
Method Detail

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 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.