pivot.collections
Class Set.SetListenerList<E>
java.lang.Object
pivot.util.ListenerList<SetListener<E>>
pivot.collections.Set.SetListenerList<E>
- All Implemented Interfaces:
- Iterable<SetListener<E>>, SetListener<E>
- Enclosing interface:
- Set<E>
public static class Set.SetListenerList<E>
- extends ListenerList<SetListener<E>>
- implements SetListener<E>
Set listener list implementation.
- Author:
- gbrown
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Set.SetListenerList
public Set.SetListenerList()
elementAdded
public void elementAdded(Set<E> set,
E element)
- 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)
- 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)
- 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,
Comparator<E> previousComparator)
- 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.