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 as IObservableList or IObservableSet.
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 Details

    • getElementType

      Object getElementType()
      Returns the element type of this observable collection, or null if this observable collection is untyped.
      Returns:
      the element type of this observable collection, or null if this observable collection is untyped.