Interface ItemListener<E>

Type Parameters:
E - item
All Superinterfaces:
EventListener
All Known Implementing Classes:
ConsoleApp

public interface ItemListener<E> extends EventListener
Item listener for IQueue, ISet and IList
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked when an item is added.
    void
    Invoked when an item is removed.
  • Method Details

    • itemAdded

      void itemAdded(ItemEvent<E> item)
      Invoked when an item is added.
      Parameters:
      item - the added item
    • itemRemoved

      void itemRemoved(ItemEvent<E> item)
      Invoked when an item is removed.
      Parameters:
      item - the removed item.