jds
Interface Queue

All Known Subinterfaces:
Deque
All Known Implementing Classes:
RingBufferQueue

public abstract interface Queue
extends Collection

Queue - collection with FIFO behavior; for use with book Classic Data Structures in Java by Timothy A Budd, published by Addison-Wesley, 2001.

See Also:
Collection

Fields inherited from class java.io.Serializable
serialVersionUID
 
Method Summary
 void addLast(java.lang.Object value)
          add a new value to end of the collection
 java.lang.Object getFirst()
          access the first value in collection
 void removeFirst()
          remove first value in collection
 
Methods inherited from interface jds.Collection
elements, isEmpty, size
 

Method Detail

addLast

public void addLast(java.lang.Object value)
add a new value to end of the collection
Parameters:
value - element to be inserted into collection

getFirst

public java.lang.Object getFirst()
access the first value in collection
Returns:
element at front of collection
Throws:
java.util.NoSuchElementException - no matching value

removeFirst

public void removeFirst()
remove first value in collection
Throws:
java.util.NoSuchElementException - no matching value