Interface Queue.UniqueQueue
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface Queue.UniqueQueue

public interface UniqueQueue
extends Object
extends Queue
Interface UniqueQueue builds on Queue by having the capability to remove a specified item from the middle of the queue. One can quickly test if an item is inside the queue. A restriction is that one cannot insert the same item multiple times into the queue.
See Also:
Queue

Method Index

 o isInside(Object)
Returns true if the specified element is inside the queue.
 o removeElement(Object)
Remove the specified element from the queue.

Methods

 o isInside
  public abstract boolean isInside(Object element)
Returns true if the specified element is inside the queue. False is returned otherwise.
Parameters:
element - the specified element
Returns:
true or false
 o removeElement
  public abstract void removeElement(Object element) throws NoSuchElementException
Remove the specified element from the queue. If the element is not inside the queue, then exception NoSuchElementException will be thrown.
Parameters:
element - the specified element
Throws: NoSuchElementException
thrown when specified element is not inside the queue.

All Packages  Class Hierarchy  This Package  Previous  Next  Index