|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ogs.support.Queue
A first-in, first-out (FIFO) data structure.
Constructor Summary | |
Queue()
Create an empty queue. |
Method Summary | |
void |
add(Object object)
Add an object to the end of this queue. |
void |
clear()
Remove all entries from this queue. |
boolean |
contains(Object object)
Determine if an entry is already in this queue. |
boolean |
isEmpty()
Determine if this queue is empty. |
Object |
look()
Access the object at the front of this queue. |
Object |
remove()
Remove an object from the front of this queue. |
int |
size()
Determine the number of elements in this queue. |
Object[] |
toArray()
Convert this queue into an array of objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Queue()
Method Detail |
public boolean isEmpty()
public int size()
public boolean contains(Object object)
object
- The object to look for.public void add(Object object)
public Object remove()
public Object look()
public void clear()
public Object[] toArray()
|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |