E - the element type, as per Collectionpublic class ScopedObservableSet<E> extends ObservableSetDecorator<E> implements Scoped<ScopedObservableSet<E>>
ObservableSet.Change<E>| Modifier | Constructor and Description |
|---|---|
protected |
ScopedObservableSet(ScopedObservableSet<E> parent,
java.util.function.Supplier<? extends java.util.Set<E>> componentFactory) |
|
ScopedObservableSet(java.util.function.Supplier<? extends java.util.Set<E>> componentFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(java.util.Collection<? extends E> c) |
void |
collapseIntoParentScope()
Collapse this scope into its parent.
|
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
java.util.Optional<ScopedObservableSet<E>> |
getParentScope() |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
java.util.Iterator<E> |
localIterator() |
ScopedObservableSet<E> |
nestChildScope() |
int |
size() |
beginChange, changes, clear, endChange, equals, fireChange, fireEvent, getComponent, hashCode, invalidations, remove, removeAll, retainAll, silent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaccumulatingSet, over, toArray, toArraysynchronizedView, unmodifiableViewpublic ScopedObservableSet(java.util.function.Supplier<? extends java.util.Set<E>> componentFactory)
protected ScopedObservableSet(ScopedObservableSet<E> parent, java.util.function.Supplier<? extends java.util.Set<E>> componentFactory)
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>add in class ObservableSetDecorator<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>addAll in class ObservableSetDecorator<E>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<E>contains in interface java.util.Set<E>contains in interface CollectionDecorator<java.util.Set<E>,E>contains in interface SetDecorator<E>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<E>containsAll in interface java.util.Set<E>containsAll in interface CollectionDecorator<java.util.Set<E>,E>containsAll in interface SetDecorator<E>public java.util.Iterator<E> localIterator()
public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface java.util.Set<E>iterator in interface CollectionDecorator<java.util.Set<E>,E>iterator in interface SetDecorator<E>public int size()
size in interface java.util.Collection<E>size in interface java.util.Set<E>size in interface CollectionDecorator<java.util.Set<E>,E>size in interface SetDecorator<E>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>isEmpty in interface java.util.Set<E>isEmpty in interface CollectionDecorator<java.util.Set<E>,E>isEmpty in interface SetDecorator<E>public java.util.Optional<ScopedObservableSet<E>> getParentScope()
getParentScope in interface Scoped<ScopedObservableSet<E>>public void collapseIntoParentScope()
ScopedcollapseIntoParentScope in interface Scoped<ScopedObservableSet<E>>public ScopedObservableSet<E> nestChildScope()
nestChildScope in interface Scoped<ScopedObservableSet<E>>