Interface IObservableCollection<E>
-
- Type Parameters:
E
- type of the elements in the collection
- All Superinterfaces:
Collection<E>
,IObservable
,Iterable<E>
- All Known Subinterfaces:
IObservableList<E>
,IObservableSet<E>
,ISWTObservableList<E>
,IViewerObservableList<E>
,IViewerObservableSet<E>
- All Known Implementing Classes:
AbstractObservableList
,AbstractObservableSet
,ComputedList
,ComputedSet
,DecoratingObservableCollection
,DecoratingObservableList
,DecoratingObservableSet
,ListToSetAdapter
,MappedSet
,MultiList
,ObservableList
,ObservableSet
,UnionSet
,WritableList
,WritableSet
public interface IObservableCollection<E> extends IObservable, Collection<E>
Interface for observable collections. Only general change listeners can be added to an observable collection. Listeners interested in incremental changes have to be added using more concrete subtypes such asIObservableList
orIObservableSet
.- Since:
- 1.0
- 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.
- Restriction:
- This interface is not intended to be extended by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getElementType()
Returns the element type of this observable collection, ornull
if this observable collection is untyped.-
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
-
Methods inherited from interface org.eclipse.core.databinding.observable.IObservable
addChangeListener, addDisposeListener, addStaleListener, dispose, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListener
-
-
-
-
Method Detail
-
getElementType
Object getElementType()
Returns the element type of this observable collection, ornull
if this observable collection is untyped.- Returns:
- the element type of this observable collection, or
null
if this observable collection is untyped.
-
-