|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.util.Queue
public class Queue
Provides a queue with synchronized methods.
Constructor Summary | |
---|---|
Queue()
|
Method Summary | |
---|---|
void |
add(Object object)
Add the given object to the end of the queue. |
void |
clear()
Clear the contents of the queue. |
boolean |
contains(Object object)
Return true if this collection contains the given object. |
boolean |
isEmpty()
Return true if this collection is empty. |
Object |
remove()
Remove and return the first event in the queue. |
int |
size()
Return the size of this collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Queue()
Method Detail |
---|
public boolean isEmpty()
public void add(Object object)
object
- The object to enqueue.public void clear()
public boolean contains(Object object)
public Object remove()
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |