Module org.jhotdraw8.fxcollection
Class ObservableSetFacade<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.jhotdraw8.icollection.facade.SetFacade<E>
org.jhotdraw8.fxcollection.facade.ObservableSetFacade<E>
- Type Parameters:
E- the element type
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>,javafx.beans.Observable,javafx.collections.ObservableSet<E>,ReadOnlyCollection<E>,ReadOnlySet<E>
public class ObservableSetFacade<E>
extends SetFacade<E>
implements javafx.collections.ObservableSet<E>
Wraps a
ReadOnlySet in the ObservableSet interface.
The underlying ReadOnlySet is referenced - not copied. This allows to pass a ReadOnlySet to a client who does not understand the ReadOnlySet APi.
- Author:
- Werner Randelshofer
-
Field Summary
Fields inherited from class org.jhotdraw8.icollection.facade.SetFacade
addFunction, clearFunction, containsFunction, iteratorFunction, removeFunction, sizeFunction, spliteratorFunction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(javafx.beans.InvalidationListener listener) voidaddListener(javafx.collections.SetChangeListener<? super E> listener) voidremoveListener(javafx.beans.InvalidationListener listener) voidremoveListener(javafx.collections.SetChangeListener<? super E> listener) Methods inherited from class org.jhotdraw8.icollection.facade.SetFacade
add, clear, contains, equals, iterator, remove, size, spliterator, streamMethods inherited from class java.util.AbstractSet
hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface javafx.beans.Observable
subscribeMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlyCollection
asCollection, containsAll, isEmpty, toArray, toArrayMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlySet
asSet, characteristics, hashCode
-
Constructor Details
-
ObservableSetFacade
-
-
Method Details
-
addListener
- Specified by:
addListenerin interfacejavafx.collections.ObservableSet<E>
-
removeListener
- Specified by:
removeListenerin interfacejavafx.collections.ObservableSet<E>
-
addListener
public void addListener(javafx.beans.InvalidationListener listener) - Specified by:
addListenerin interfacejavafx.beans.Observable
-
removeListener
public void removeListener(javafx.beans.InvalidationListener listener) - Specified by:
removeListenerin interfacejavafx.beans.Observable
-