org.apache.pivot.collections
Class QueueListener.Adapter<T>

java.lang.Object
  extended by org.apache.pivot.collections.QueueListener.Adapter<T>
All Implemented Interfaces:
QueueListener<T>
Enclosing interface:
QueueListener<T>

public static class QueueListener.Adapter<T>
extends Object
implements QueueListener<T>

QueueListener adapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.collections.QueueListener
QueueListener.Adapter<T>
 
Constructor Summary
QueueListener.Adapter()
           
 
Method Summary
 void comparatorChanged(Queue<T> queue, Comparator<T> previousComparator)
          Called when a queue's comparator has changed.
 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.
 void queueCleared(Queue<T> queue)
          Called when a queue has been cleared.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueListener.Adapter

public QueueListener.Adapter()
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>

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>