public abstract class ObservableSetBase<E> extends AbstractSet<E> implements ObservableSet<E>
Modifier and Type | Class and Description |
---|---|
static class |
ObservableSetBase.BaseAddChange<T> |
static class |
ObservableSetBase.BaseRemoveChange<T> |
Constructor and Description |
---|
ObservableSetBase() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(InvalidationListener listener) |
void |
addListener(SetChangeListener<? super E> listener) |
protected void |
fireChange(SetChangeListener.Change<? extends E> change) |
protected boolean |
hasListeners()
Returns true if there are some listeners registered for this list.
|
void |
removeListener(InvalidationListener listener) |
void |
removeListener(SetChangeListener<? super E> listener) |
equals, hashCode, removeAll
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
public final void addListener(InvalidationListener listener)
addListener
in interface Observable
public final void removeListener(InvalidationListener listener)
removeListener
in interface Observable
public final void addListener(SetChangeListener<? super E> listener)
addListener
in interface ObservableSet<E>
public final void removeListener(SetChangeListener<? super E> listener)
removeListener
in interface ObservableSet<E>
protected final void fireChange(SetChangeListener.Change<? extends E> change)
protected final boolean hasListeners()