Package org.apache.pivot.collections
Class QueueListener.Adapter<T>
- java.lang.Object
-
- org.apache.pivot.collections.QueueListener.Adapter<T>
-
- Type Parameters:
T
- Type of object stored in the queue.
- All Implemented Interfaces:
QueueListener<T>
- Enclosing interface:
- QueueListener<T>
@Deprecated public static final class QueueListener.Adapter<T> extends java.lang.Object implements QueueListener<T>
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.QueueListener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.collections.QueueListener
QueueListener.Adapter<T>, QueueListener.Listeners<T>
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
comparatorChanged(Queue<T> queue, java.util.Comparator<T> previousComparator)
Deprecated.Called when a queue's comparator has changed.void
itemDequeued(Queue<T> queue, T item)
Deprecated.Called when an item has been removed from the head of a queue.void
itemEnqueued(Queue<T> queue, T item)
Deprecated.Called when an item has been inserted into the tail of a queue.void
queueCleared(Queue<T> queue)
Deprecated.Called when a queue has been cleared.
-
-
-
Method Detail
-
itemEnqueued
public void itemEnqueued(Queue<T> queue, T item)
Deprecated.Description copied from interface:QueueListener
Called when an item has been inserted into the tail of a queue.- Specified by:
itemEnqueued
in interfaceQueueListener<T>
- Parameters:
queue
- The queue that has been modified.item
- The item that was just added to the queue.
-
itemDequeued
public void itemDequeued(Queue<T> queue, T item)
Deprecated.Description copied from interface:QueueListener
Called when an item has been removed from the head of a queue.- Specified by:
itemDequeued
in interfaceQueueListener<T>
- Parameters:
queue
- The queue in question.item
- The item that was just removed from the head of the queue.
-
queueCleared
public void queueCleared(Queue<T> queue)
Deprecated.Description copied from interface:QueueListener
Called when a queue has been cleared.- Specified by:
queueCleared
in interfaceQueueListener<T>
- Parameters:
queue
- The newly cleared queue object.
-
comparatorChanged
public void comparatorChanged(Queue<T> queue, java.util.Comparator<T> previousComparator)
Deprecated.Description copied from interface:QueueListener
Called when a queue's comparator has changed.- Specified by:
comparatorChanged
in interfaceQueueListener<T>
- Parameters:
queue
- The queue that changed.previousComparator
- Previous value of the queue's comparator (if any).
-
-