public interface IQueue<T>
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IQueueListener listener)
Adds a queue listener to the queue.
|
int |
getElementCount()
Returns the number of elements in the queue.
|
boolean |
hasElements()
Returns true if the queue contains elements.
|
T |
nextElement()
Returns the nextElement from the queue, removes the element from
the queue afterwards.
|
void |
putElement(T o)
Puts a new element in the queue.
|
void |
removeListener(IQueueListener listener)
Removes a queue listener from the queue.
|
int |
size()
Returns the size of the queue.
|
boolean hasElements()
int getElementCount()
T nextElement()
void putElement(T o) throws QueueOverflowException
o - QueueOverflowException - if the queue is full.void addListener(IQueueListener listener)
listener - void removeListener(IQueueListener listener)
listener - int size()
Copyright © 2010-2014 anotheria.net. All Rights Reserved.