fr.ove.utils
Interface Queueable

All Known Implementing Classes:
Queue

public interface Queueable

Interface to respect to have a queue behaviour

Version:
1.0 28/06/2000
Author:
© 2000 DIRAT Laurent

Method Summary
 void clear()
          Clears the queue
 java.lang.Object dequeue()
          Removes the first element added into the queue.
 java.util.Enumeration elements()
          Returns an @see Enumeration of the elements in the queue.
 void enqueue(java.lang.Object element)
          Adds the specified element to the queue
 boolean isEmpty()
          Checks if the queue is empty.
 java.lang.Object peek()
          Returns the first element added into the queue.
 

Method Detail

enqueue

public void enqueue(java.lang.Object element)
Adds the specified element to the queue


dequeue

public java.lang.Object dequeue()
Removes the first element added into the queue. Returns the element removed. null if the queue is empty


peek

public java.lang.Object peek()
Returns the first element added into the queue. null if the queue is empty


isEmpty

public boolean isEmpty()
Checks if the queue is empty. Returns true if the queue is empty. false otherwise.


clear

public void clear()
Clears the queue


elements

public java.util.Enumeration elements()
Returns an @see Enumeration of the elements in the queue.



Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.