Package org.apache.pivot.collections
Class SetListener.Adapter<E>
- java.lang.Object
-
- org.apache.pivot.collections.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.collections.SetListener
SetListener.Adapter<E>, SetListener.Listeners<E>
-
-
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.
-
-
-
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 interfaceSetListener<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 interfaceSetListener<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 interfaceSetListener<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 interfaceSetListener<E>
- Parameters:
set
- The source of the event.previousComparator
- The previous comparator value.
-
-