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.
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>
queueCleared
public void queueCleared(Queue<T> queue)
- Description copied from interface:
QueueListener
- Called when a queue has been cleared.
- Specified by:
queueCleared
in interface QueueListener<T>
comparatorChanged
public void comparatorChanged(Queue<T> queue,
Comparator<T> previousComparator)
- Description copied from interface:
QueueListener
- Called when a queue's comparator has changed.
- Specified by:
comparatorChanged
in interface QueueListener<T>