API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. AbstractQueue View Source
Author(s)
Doug Lea
Since
1.5
Version
Serial
Hierarchy
 Object
      AbstractCollection
          AbstractQueue
Implements
 Queue
Subclasses
Description
publicabstract abstract class AbstractQueue
  This class provides skeletal implementations of some Queue operations.
See also:   
Constructors
protected AbstractQueue ()
Constructor for use by subclasses.
Methods
Hide/Show inherited methods
public boolean add ( E e) [Overrides AbstractCollection] [Specified in Queue]
  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 boolean addAll (Collection<Object> c) [Overrides AbstractCollection]
  Adds all of the elements in the specified collection to this queue.
public void clear () [Overrides AbstractCollection]
  Removes all of the elements from this queue.
public boolean contains (Object o) [Inherited From AbstractCollection]
  Returns true if this collection contains the specified element.
public boolean containsAll (Collection<Object> c) [Inherited From AbstractCollection]
  Returns true if this collection contains all of the elements in the specified collection.
public E element () [Specified in Queue]
  Retrieves, but does not remove, the head of this queue.
public boolean isEmpty () [Inherited From AbstractCollection]
  Returns true if this collection contains no elements.
publicabstract Iterator< E> iterator () [Inherited From AbstractCollection]
  Returns an iterator over the elements contained in this collection.
public E remove () [Specified in Queue]
  Retrieves and removes the head of this queue.
public boolean remove (Object o) [Inherited From AbstractCollection]
  Removes a single instance of the specified element from this collection, if it is present (optional operation).
public boolean removeAll (Collection<Object> c) [Inherited From AbstractCollection]
  Removes all of this collection's elements that are also contained in the specified collection (optional operation).
public boolean retainAll (Collection<Object> c) [Inherited From AbstractCollection]
  Retains only the elements in this collection that are contained in the specified collection (optional operation).
publicabstract int size () [Inherited From AbstractCollection]
public Object toArray () [Inherited From AbstractCollection]
  Returns an array containing all of the elements in this collection.
public T toArray ( T a) [Inherited From AbstractCollection]
  Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array.
public String toString () [Inherited From AbstractCollection]
  Returns a string representation of this collection.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar