# Class ClassQueue

java.lang.Object
org.apache.bcel.util.ClassQueue

public class ClassQueue extends Object
Utility class implementing a (typesafe) queue of JavaClass objects.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected LinkedList<JavaClass>`
  `vec`
  Deprecated.
  (since 6.0) will be made private; do not access

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ClassQueue()`
  Constructs a new ClassQueue.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `JavaClass`
  `dequeue()`
  Removes and returns the first JavaClass from the queue.
  `boolean`
  `empty()`
  Checks if the queue is empty.
  `void`
  `enqueue(JavaClass clazz)`
  Adds a JavaClass to the end of the queue.
  `String`
  `toString()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### vec

    @Deprecated protected LinkedList<JavaClass> vec
    Deprecated.
    (since 6.0) will be made private; do not access

- ## Constructor Details

  - ### ClassQueue

    public ClassQueue()
    Constructs a new ClassQueue.

- ## Method Details

  - ### dequeue

    public JavaClass dequeue()
    Removes and returns the first JavaClass from the queue.
    Returns:
      the first JavaClass from the queue.

  - ### empty

    public boolean empty()
    Checks if the queue is empty.
    Returns:
      true if the queue is empty.

  - ### enqueue

    public void enqueue(JavaClass clazz)
    Adds a JavaClass to the end of the queue.
    Parameters:
      `clazz` - the JavaClass to add.

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`