org.apache.pivot.collections
Class Queue.QueueListenerList<T>
java.lang.Object
org.apache.pivot.util.ListenerList<QueueListener<T>>
org.apache.pivot.collections.Queue.QueueListenerList<T>
- All Implemented Interfaces:
- Iterable<QueueListener<T>>, QueueListener<T>
- Enclosing interface:
- Queue<T>
public static class Queue.QueueListenerList<T>
- extends ListenerList<QueueListener<T>>
- implements QueueListener<T>
Queue listener list.
Method Summary |
void |
itemDequeued(Queue<T> queue,
T item)
Called when an item has been removed from the head of a queue. |
void |
itemEnqueued(Queue<T> queue,
T item)
Called when an item has been inserted into the tail of a queue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Queue.QueueListenerList
public Queue.QueueListenerList()
itemEnqueued
public void itemEnqueued(Queue<T> queue,
T item)
- Description copied from interface:
QueueListener
- Called when an item has been inserted into the tail of a queue.
- Specified by:
itemEnqueued
in interface QueueListener<T>
itemDequeued
public void itemDequeued(Queue<T> queue,
T item)
- Description copied from interface:
QueueListener
- Called when an item has been removed from the head of a queue.
- Specified by:
itemDequeued
in interface QueueListener<T>