FileDocCategorySizeDatePackage
SimpleQueue.javaAPI DocGlassfish v2 API2479Fri May 04 22:36:24 BST 2007com.sun.enterprise.admin.jmx.remote.notification

SimpleQueue

public class SimpleQueue extends Object
A simple Queue class implemented using java.util.LinkedList

Fields Summary
private LinkedList
q
Constructors Summary
public SimpleQueue()

        q = new LinkedList();
    
Methods Summary
public voidadd(java.lang.Object obj)

        q.add(obj);
    
public booleanisEmpty()

        return q.isEmpty();
    
public java.lang.Objectremove()

        return q.removeFirst();
    
public intsize()

        return q.size();