Interface IObservableSet<E>
- Type Parameters:
E- the type of the elements in this set
- All Superinterfaces:
Collection<E>,IObservable,IObservableCollection<E>,Iterable<E>,Set<E>
- All Known Subinterfaces:
IViewerObservableSet<E>
- All Known Implementing Classes:
AbstractObservableSet,ComputedSet,DecoratingObservableSet,ListToSetAdapter,MappedSet,ObservableSet,UnionSet,WritableSet
A set whose changes can be tracked by set change listeners.
- Since:
- 1.0
- See Also:
- Restriction:
- This interface is not intended to be implemented by clients.
Clients should instead subclass one of the classes that
implement this interface.
Authors of extensions to the databinding framework may extend this interface and indirectly implement it, but if doing so must also extend one of the framework classes. (Use an API problem filter to suppress the resulting warning.)
Direct implementers of this interface outside of the framework will be broken in future releases when methods are added to this interface.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) voidaddSetChangeListener(ISetChangeListener<? super E> listener) booleanbooleancontainsAll(Collection<?> c) booleanReturns the element type of this observable collection, ornullif this observable collection is untyped.inthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) voidremoveSetChangeListener(ISetChangeListener<? super E> listener) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.eclipse.core.databinding.observable.IObservable
addChangeListener, addDisposeListener, addStaleListener, dispose, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListenerMethods inherited from interface java.util.Set
clear, spliterator
-
Method Details
-
addSetChangeListener
- Parameters:
listener- the change listener to add; notnull
-
removeSetChangeListener
- Parameters:
listener- the change listener to remove; notnull
-
getElementType
Object getElementType()Description copied from interface:IObservableCollectionReturns the element type of this observable collection, ornullif this observable collection is untyped.- Specified by:
getElementTypein interfaceIObservableCollection<E>- Returns:
- the element type or
nullif untyped
-
size
int size() -
isEmpty
boolean isEmpty() -
contains
-
iterator
-
toArray
Object[] toArray() -
toArray
<T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>- TrackedGetter
-
addAll
-
retainAll
-
removeAll
-
equals
-
hashCode
int hashCode()
-