All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Queue

java.lang.Object
   |
   +----Acme.FlexVector
           |
           +----Acme.Queue

public class Queue
extends FlexVector
Simple queue class.

Similar to java.util.Stack, except it's FIFO instead of LIFO.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o Queue()

Method Index

 o addBack(Object)
Adds an item to the back of the queue.
 o getFront()
Gets an item off the front of the queue.
 o peekFront()
Peeks at the front of the queue.

Constructors

 o Queue
 public Queue()

Methods

 o addBack
 public Object addBack(Object item)
Adds an item to the back of the queue.

Why does it return the item? Because Stack.push() does.

 o getFront
 public Object getFront()
Gets an item off the front of the queue.

 o peekFront
 public Object peekFront()
Peeks at the front of the queue.


All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs