FileDocCategorySizeDatePackage
SynchronizedDListNode.javaAPI DocGlassfish v2 API3650Fri May 04 22:32:10 BST 2007com.sun.enterprise.util.collection

SynchronizedDListNode

public class SynchronizedDListNode extends DListNode

$Source: /cvs/glassfish/appserv-commons/src/java/com/sun/enterprise/util/collection/SynchronizedDListNode.java,v $
author
$Author: tcfujii $
version
$Revision: 1.4 $ $Date: 2007/05/05 05:32:10 $

Fields Summary
Constructors Summary
public SynchronizedDListNode()

    
public SynchronizedDListNode(Object obj)

    	this.object = obj;
    
Methods Summary
public voiddelink()

    	synchronized (prev) {
    		synchronized (this) {
    			prev.next = next;
    			next.prev = prev;
    			prev = next = null;
    		}
    	}
    
public voidinsertAfter(DListNode node)

    	next.insertBefore(node);
    
public voidinsertBefore(DListNode node)

    	synchronized (prev) {
    		synchronized (this) {
    			node.prev = prev;
    			node.next = this;
    			prev.next = node;
    			prev = node;
    		}
    	}