Package org.apache.pivot.collections
Class StackListener.Adapter<T>
- java.lang.Object
-
- org.apache.pivot.collections.StackListener.Adapter<T>
-
- Type Parameters:
T
- Type of object stored in this stack.
- All Implemented Interfaces:
StackListener<T>
- Enclosing interface:
- StackListener<T>
@Deprecated public static final class StackListener.Adapter<T> extends java.lang.Object implements StackListener<T>
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.StackListener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.collections.StackListener
StackListener.Adapter<T>, StackListener.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(Stack<T> stack, java.util.Comparator<T> previousComparator)
Deprecated.Called when a stack's comparator has changed.void
itemPopped(Stack<T> stack, T item)
Deprecated.Called when an item has been popped off of a stack.void
itemPushed(Stack<T> stack, T item)
Deprecated.Called when an item has been pushed onto a stack.void
stackCleared(Stack<T> stack)
Deprecated.Called when a stack has been cleared.
-
-
-
Method Detail
-
itemPushed
public void itemPushed(Stack<T> stack, T item)
Deprecated.Description copied from interface:StackListener
Called when an item has been pushed onto a stack.- Specified by:
itemPushed
in interfaceStackListener<T>
- Parameters:
stack
- The stack that has changed.item
- The newly pushed item.
-
itemPopped
public void itemPopped(Stack<T> stack, T item)
Deprecated.Description copied from interface:StackListener
Called when an item has been popped off of a stack.- Specified by:
itemPopped
in interfaceStackListener<T>
- Parameters:
stack
- The stack that has changed.item
- The item newly popped from the stack.
-
stackCleared
public void stackCleared(Stack<T> stack)
Deprecated.Description copied from interface:StackListener
Called when a stack has been cleared.- Specified by:
stackCleared
in interfaceStackListener<T>
- Parameters:
stack
- The newly cleared stack.
-
comparatorChanged
public void comparatorChanged(Stack<T> stack, java.util.Comparator<T> previousComparator)
Deprecated.Description copied from interface:StackListener
Called when a stack's comparator has changed.- Specified by:
comparatorChanged
in interfaceStackListener<T>
- Parameters:
stack
- The stack in question.previousComparator
- The previous comparator for this stack (if any).
-
-