org.apache.pivot.collections
Interface StackListener<T>

All Known Implementing Classes:
Stack.StackListenerList, StackListener.Adapter

public interface StackListener<T>

Stack listener interface.


Nested Class Summary
static class StackListener.Adapter<T>
          StackListener adapter.
 
Method Summary
 void comparatorChanged(Stack<T> stack, Comparator<T> previousComparator)
          Called when a stack's comparator has changed.
 void itemPopped(Stack<T> stack, T item)
          Called when an item has been popped off of a stack.
 void itemPushed(Stack<T> stack, T item)
          Called when an item has been pushed onto a stack.
 void stackCleared(Stack<T> stack)
          Called when a stack has been cleared.
 

Method Detail

itemPushed

void itemPushed(Stack<T> stack,
                T item)
Called when an item has been pushed onto a stack.

Parameters:
stack -
item -

itemPopped

void itemPopped(Stack<T> stack,
                T item)
Called when an item has been popped off of a stack.

Parameters:
stack -
item -

stackCleared

void stackCleared(Stack<T> stack)
Called when a stack has been cleared.

Parameters:
stack -

comparatorChanged

void comparatorChanged(Stack<T> stack,
                       Comparator<T> previousComparator)
Called when a stack's comparator has changed.

Parameters:
stack -
previousComparator -