![]() |
Quadcap Embeddable Server |
Inheritance diagram for com.quadcap.util.collections.Queue:

Definition at line 46 of file Queue.java.
Public Member Functions | |
| void | setCapacity (int capacity) |
| Specify the maximum capacity of this queue, -1 means unbounded. | |
| int | size () |
| Return the number of items in the queue. | |
| void | addFront (Object obj) |
| Add an object to the front of the queue. | |
| void | addBack (Object obj) |
| Add an object to the back of the queue. | |
| Object | head () |
| Access the object at the front of the queue. | |
| Object | tail () |
| Access the object at the back of the queue. | |
| Object | popFront () |
| Remove and return the item at the front of the queue. | |
| Object | popBack () |
| Remove and return the item at the back of the queue. | |
|
|
Add an object to the back of the queue.
Implemented in com.quadcap.util.collections.ArrayQueue. |
|
|
Add an object to the front of the queue.
Implemented in com.quadcap.util.collections.ArrayQueue. |
|
|
Access the object at the front of the queue. Throw a runtime exception if the queue is empty.
Implemented in com.quadcap.util.collections.ArrayQueue. |
|
|
Remove and return the item at the back of the queue. Throw a runtime exception if the queue is empty.
Implemented in com.quadcap.util.collections.ArrayQueue. |
|
|
Remove and return the item at the front of the queue. Throw a runtime exception if the queue is empty.
Implemented in com.quadcap.util.collections.ArrayQueue. |
|
|
Specify the maximum capacity of this queue, -1 means unbounded.
Implemented in com.quadcap.util.collections.ArrayQueue. |
|
|
Return the number of items in the queue.
Implemented in com.quadcap.util.collections.ArrayQueue. |
|
|
Access the object at the back of the queue. Throw a runtime exception if the queue is empty.
Implemented in com.quadcap.util.collections.ArrayQueue. |