de.bea.domingo.queue
Interface Queue

All Known Implementing Classes:
MTQueue, NotesRecycleQueue

public interface Queue

Interface definition of a general Queue.

Author:
Kurt Riede

Method Summary
 java.lang.Object dequeue()
          Dequeues an object from the queue.
 void enqueue(java.lang.Object obj)
          Enqueues an object to the queue.
 boolean isEmpty()
          Checks is the queue is empty or not.
 int size()
          Returns the number of objects in the queue.
 

Method Detail

size

int size()
Returns the number of objects in the queue.

Returns:
number of objects in the queue

isEmpty

boolean isEmpty()
Checks is the queue is empty or not.

Returns:
true if the queue is empty, else false

enqueue

void enqueue(java.lang.Object obj)
Enqueues an object to the queue.

Parameters:
obj - the object to enqueue

dequeue

java.lang.Object dequeue()
Dequeues an object from the queue.

Returns:
next object from the queue or null if the queue is empty


Domingo Java-API