public class ObservableSetDecorator<E> extends java.lang.Object implements SetDecorator<E>, ObservableSet<E>
ObservableSet.Change<E>| Constructor and Description |
|---|
ObservableSetDecorator(java.util.Set<E> component) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(java.util.Collection<? extends E> c) |
protected boolean |
beginChange() |
Observable<ObservableSet.Change<E>> |
changes() |
void |
clear() |
protected boolean |
endChange() |
boolean |
equals(java.lang.Object obj) |
protected void |
fireChange(ObservableSet.Change<E> change) |
protected void |
fireEvent() |
java.util.Set<E> |
getComponent() |
int |
hashCode() |
Observable<? extends ObservableCollection<E,ObservableSet.Change<E>>> |
invalidations() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
java.util.Set<E> |
silent()
Get a view of the collection which can be mutated without triggering events.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaccumulatingSet, contains, containsAll, isEmpty, iterator, over, size, toArray, toArraysynchronizedView, unmodifiableViewpublic ObservableSetDecorator(java.util.Set<E> component)
public java.util.Set<E> getComponent()
getComponent in interface CollectionDecorator<java.util.Set<E>,E>getComponent in interface SetDecorator<E>protected boolean beginChange()
protected boolean endChange()
protected void fireChange(ObservableSet.Change<E> change)
protected void fireEvent()
public Observable<? extends ObservableCollection<E,ObservableSet.Change<E>>> invalidations()
invalidations in interface ObservableCollection<E,ObservableSet.Change<E>>public boolean add(E e)
add in interface java.util.Collection<E>add in interface java.util.Set<E>add in interface CollectionDecorator<java.util.Set<E>,E>add in interface SetDecorator<E>public boolean addAll(java.util.Collection<? extends E> c)
addAll in interface java.util.Collection<E>addAll in interface java.util.Set<E>addAll in interface CollectionDecorator<java.util.Set<E>,E>addAll in interface SetDecorator<E>public void clear()
clear in interface java.util.Collection<E>clear in interface java.util.Set<E>clear in interface CollectionDecorator<java.util.Set<E>,E>clear in interface SetDecorator<E>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<E>remove in interface java.util.Set<E>remove in interface CollectionDecorator<java.util.Set<E>,E>remove in interface SetDecorator<E>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<E>removeAll in interface java.util.Set<E>removeAll in interface CollectionDecorator<java.util.Set<E>,E>removeAll in interface SetDecorator<E>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<E>retainAll in interface java.util.Set<E>retainAll in interface CollectionDecorator<java.util.Set<E>,E>retainAll in interface SetDecorator<E>public Observable<ObservableSet.Change<E>> changes()
changes in interface ObservableCollection<E,ObservableSet.Change<E>>public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
public boolean equals(java.lang.Object obj)
public java.util.Set<E> silent()
ObservableCollectionsilent in interface ObservableCollection<E,ObservableSet.Change<E>>silent in interface ObservableSet<E>