public class Queue
extends java.lang.Object
Constructor and Description |
---|
Queue() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get()
Get the first object out of the queue.
|
boolean |
isEmpty()
Is the queue empty?
|
java.lang.Object |
peek()
Peek to see if something is available.
|
java.lang.Object |
pull()
Pull the first object out of the queue.
|
void |
put(java.lang.Object object)
Put the object into the queue.
|
int |
size()
How many elements are there in this queue?
|
public void put(java.lang.Object object)
object
- the object to be appended to the queue.public java.lang.Object pull()
public java.lang.Object get()
public java.lang.Object peek()
public boolean isEmpty()
public int size()