|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vrspace.neurogrid.Queue
Synchronized FIFO Queue
Nested Class Summary | |
class |
Queue.QueueIterator
|
Constructor Summary | |
Queue()
|
Method Summary | |
void |
add(java.lang.Object o)
add new object to the queue |
java.lang.Object |
elementAt(int pos)
Returns element at specified position in the queue |
boolean |
isEmpty()
queue empty? |
Queue.QueueIterator |
iterator()
|
static void |
main(java.lang.String[] args)
|
java.lang.Object |
peek()
returns the next object from the queue, null if queue has no elements |
java.lang.Object |
remove()
returns the next object and removes it from the queue, null for empty queue |
void |
removeElement(java.lang.Object o)
removes object from the queue |
java.lang.Object |
removeElementAt(int pos)
Removes element at specified position in the queue |
int |
size()
returns queue size |
java.lang.Object[] |
toArray()
Returns array containing queue elements |
java.lang.Object[] |
toArray(java.lang.Object[] array)
Stores queue elements to the array. |
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 java.lang.Object[] toArray()
public java.lang.Object[] toArray(java.lang.Object[] array)
java.lang.ArrayIndexOutOfBoundsException
- if array has wrong size.public void add(java.lang.Object o)
public java.lang.Object peek()
public java.lang.Object remove()
public java.lang.Object elementAt(int pos)
public java.lang.Object removeElementAt(int pos)
public void removeElement(java.lang.Object o)
public boolean isEmpty()
public int size()
public Queue.QueueIterator iterator()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |