All Packages Class Hierarchy This Package Previous Next Index
Class dlib.Queue
java.lang.Object
|
+----dlib.BaseObject
|
+----dlib.Queue
- public class Queue
- extends BaseObject
a simple Queue class, which accepts the same methods as Stack objects,
bit is FIFO rather than LIFO.
-
elementCount
- the number of elements currently enqueued
-
Queue()
-
-
empty()
- returns true if the Queue is empty
-
flush()
- make it be empty
-
peek()
- peek a look at the next element
-
pop()
- remove the oldest element
-
push(Object)
- add a new element
elementCount
public int elementCount
- the number of elements currently enqueued
Queue
public Queue()
empty
public boolean empty()
- returns true if the Queue is empty
flush
public synchronized void flush()
- make it be empty
peek
public Object peek()
- peek a look at the next element
push
public synchronized void push(Object x)
- add a new element
pop
public synchronized Object pop()
- remove the oldest element
All Packages Class Hierarchy This Package Previous Next Index