File
Doc
Category
Size
Date
Package
SimpleQueue.java
API Doc
Glassfish v2 API
2479
Fri May 04 22:36:24 BST 2007
com.sun.enterprise.admin.jmx.remote.notification
SimpleQueue
java.lang.Object
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 void
add
(
java.lang.Object
obj)
q.add(obj);
public
boolean
isEmpty
()
return q.isEmpty();
public
java.lang.Object
remove
()
return q.removeFirst();
public
int
size
()
return q.size();
Java Code Source