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