AbstractQueueE


AbstractQueue<E> java.util

Java 5.0 collection

This abstract class provides a framework for simple Queue implementations . A concrete subclass must implement offer( ) , peek( ) , and poll( ) and must also implement the inherited size ( ) and iterator( ) methods of the Collection interface. The Iterator returned by iterator( ) must support the remove( ) operation.

Figure 16-4. java.util.AbstractQueue<E>

 public abstract class  AbstractQueue<E>  extends AbstractCollection<E> implements Queue<E> {  // Protected Constructors  protected  AbstractQueue  ( );  // Methods Implementing Collection  public boolean  add  (E  o  );        public boolean  addAll  (Collection<? extends E>  c  );        public void  clear  ( );  // Methods Implementing Queue  public E  element  ( );        public E  remove  ( );   } 

Subclasses

PriorityQueue , java.util.concurrent.ArrayBlockingQueue , java.util.concurrent.ConcurrentLinkedQueue , java.util.concurrent.DelayQueue , java.util.concurrent.LinkedBlockingQueue , java.util.concurrent.PriorityBlockingQueue , java.util.concurrent.SynchronousQueue



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net