Class ObservableSet<E>

java.lang.Object
net.sf.jstuff.core.collection.ObservableCollection<E,Set<E>>
net.sf.jstuff.core.collection.ObservableSet<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>, CollectionExt<E>, EventListenable<ObservableCollection.ChangeEvent<E>>

public class ObservableSet<E> extends ObservableCollection<E,Set<E>> implements Set<E>
A Set wrapper that emits change events when modified through this ObservableSet.

Changes made directly to the underlying Set instance are not observable and will not trigger events.

Change events include item-level details, and may include index information if the underlying set has a defined or stable iteration order:

Listeners can subscribe to receive change events describing the type of change and the affected items.

Author:
Sebastian Thomschke