Microsoft SDK for Java

Queue Class

The Queue Class of the com.ms.util package provides a queue, implemented in an array.

public class Queue implements java.util.Enumeration, Cloneable
{
  // Constructors
  public Queue();
  public Queue(int intialcapacity);
  public Queue(int intialcapacity, init growthfactor);

  // Methods
  public synchronized void addElement(Object newelt);
  public int capacity();
  protected Object clone() throws CloneNotSupportedEception;
  public synchronized Queue copy();
  public synchronized Object elementFromHead(int idx);
  public synchronized Object elementFromTail(int idx);
  public synchronized boolean hasMoreElements();
  public synchronized Object nextElement();
  public synchronized Object pop();
  public synchronized void removeAllElements();
  public synchronized int setCapacity(int newcapacity);
  public synchronized int size();
  public String toString();
}

© 1999 Microsoft Corporation. All rights reserved. Terms of use.