API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. Queue View Source
Author(s)
Doug Lea
Since
1.5
Version
Serial
Hierarchy
 Iterable
      Collection
          Queue
Subinterfaces
Description
public interface Queue
  A collection designed for holding elements prior to processing.
Methods
Hide/Show inherited methods
public boolean add ( E e) [Specified in Collection]
  Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions, returning true upon success and throwing an IllegalStateException if no space is currently available.
public E element ()
  Retrieves, but does not remove, the head of this queue.
public boolean offer ( E e)
  Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions.
public E peek ()
  Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.
public E poll ()
  Retrieves and removes the head of this queue, or returns null if this queue is empty.
public E remove ()
  Retrieves and removes the head of this queue.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar