Class SetListener.Adapter<E>

  • Type Parameters:
    E - Type of object stored in this set.
    All Implemented Interfaces:
    SetListener<E>
    Enclosing interface:
    SetListener<E>

    @Deprecated
    public static final class SetListener.Adapter<E>
    extends java.lang.Object
    implements SetListener<E>
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    Set listener adapter.
    • Constructor Summary

      Constructors 
      Constructor Description
      Adapter()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void comparatorChanged​(Set<E> set, java.util.Comparator<E> previousComparator)
      Deprecated.
      Called when a set's comparator has changed.
      void elementAdded​(Set<E> set, E element)
      Deprecated.
      Called when an element is added to a set.
      void elementRemoved​(Set<E> set, E element)
      Deprecated.
      Called when an element is removed from the set.
      void setCleared​(Set<E> set)
      Deprecated.
      Called when set data has been reset.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • elementAdded

        public void elementAdded​(Set<E> set,
                                 E element)
        Deprecated.
        Description copied from interface: SetListener
        Called when an element is added to a set.
        Specified by:
        elementAdded in interface SetListener<E>
        Parameters:
        set - The source of the set event.
        element - The element that was added to the set.
      • elementRemoved

        public void elementRemoved​(Set<E> set,
                                   E element)
        Deprecated.
        Description copied from interface: SetListener
        Called when an element is removed from the set.
        Specified by:
        elementRemoved in interface SetListener<E>
        Parameters:
        set - The source of the set event.
        element - The element that was removed from the set.
      • setCleared

        public void setCleared​(Set<E> set)
        Deprecated.
        Description copied from interface: SetListener
        Called when set data has been reset.
        Specified by:
        setCleared in interface SetListener<E>
        Parameters:
        set - The source of the set event.
      • comparatorChanged

        public void comparatorChanged​(Set<E> set,
                                      java.util.Comparator<E> previousComparator)
        Deprecated.
        Description copied from interface: SetListener
        Called when a set's comparator has changed.
        Specified by:
        comparatorChanged in interface SetListener<E>
        Parameters:
        set - The source of the event.
        previousComparator - The previous comparator value.