Code example for ReferenceQueue

0
 * @author Eric Dalquist <a href="mailto:edalquist@unicon.net">edalquist@unicon.net</a> 
 * @version $Revision$ 
 */ 
public class WeakLinkedList<T> implements List<T> {
	private final Object LOCK = new Object();
	private final ReferenceQueue<T> queue = new ReferenceQueue<T>();
	private int size = 0;
	private long modcount = 0;
	private WeakListNode head = null;
	private WeakListNode tail = null;
	private String listName = null;
 
	public WeakLinkedList() { 
	} 
 
	public WeakLinkedList(Collection<? extends T> c) {
		this(); 
		this.addAll(c);
	} 
 
	public WeakLinkedList(String name) {