public class Queue
extends java.lang.Object
Constructor and Description |
---|
Queue()
Constructs a Queue object of unlimited size.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object o)
Adds an Object to the end of the Queue.
|
void |
addFront(java.lang.Object o)
Adds an Object to the front of the Queue.
|
void |
clear()
Clears the contents of the Queue.
|
boolean |
hasNext()
Returns true if the Queue is not empty.
|
java.lang.Object |
next()
Returns the Object at the front of the Queue.
|
int |
size()
Returns the size of the Queue.
|
public void add(java.lang.Object o)
o
- The Object to be added to the Queue.public void addFront(java.lang.Object o)
o
- The Object to be added to the Queue.public java.lang.Object next()
public boolean hasNext()
public void clear()
public int size()
PircBot Java IRC Bot.