org.apache.pivot.collections
Class Queue.QueueListenerList<T>

java.lang.Object
  extended by org.apache.pivot.util.ListenerList<QueueListener<T>>
      extended by 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.


Constructor Summary
Queue.QueueListenerList()
           
 
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 org.apache.pivot.util.ListenerList
add, iterator, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Queue.QueueListenerList

public Queue.QueueListenerList()
Method Detail

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>