Class 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.
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • 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 interface StackListener<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 interface StackListener<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 interface StackListener<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 interface StackListener<T>
        Parameters:
        stack - The stack in question.
        previousComparator - The previous comparator for this stack (if any).