org.vizzini.util
Class Queue

java.lang.Object
  extended by org.vizzini.util.Queue

public class Queue
extends Object

Provides a queue with synchronized methods.

Since:
v0.1
Version:
v0.1
Author:
Jeffrey M. Thompson

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

Queue

public Queue()
Method Detail

isEmpty

public boolean isEmpty()
Return true if this collection is empty.

Since:
v0.1

add

public void add(Object object)
Add the given object to the end of the queue.

Parameters:
object - The object to enqueue.
Since:
v0.1

clear

public void clear()
Clear the contents of the queue.

Since:
v0.1

contains

public boolean contains(Object object)
Return true if this collection contains the given object.

Since:
v0.1

remove

public Object remove()
Remove and return the first event in the queue.

Since:
v0.1

size

public int size()
Return the size of this collection.

Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02