Interface IObservableSet<E>
-
- Type Parameters:
E- the type of the elements in this set
- All Superinterfaces:
java.util.Collection<E>,IObservable,IObservableCollection<E>,java.lang.Iterable<E>,java.util.Set<E>
- All Known Subinterfaces:
IViewerObservableSet<E>
- All Known Implementing Classes:
AbstractObservableSet,ComputedSet,DecoratingObservableSet,ListToSetAdapter,MappedSet,ObservableSet,UnionSet,WritableSet
public interface IObservableSet<E> extends java.util.Set<E>, IObservableCollection<E>
A set whose changes can be tracked by set change listeners.- Since:
- 1.0
- See Also:
AbstractObservableSet,ObservableSet- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanadd(E o)booleanaddAll(java.util.Collection<? extends E> c)voidaddSetChangeListener(ISetChangeListener<? super E> listener)booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)booleanequals(java.lang.Object o)java.lang.ObjectgetElementType()Returns the element type of this observable collection, ornullif this observable collection is untyped.inthashCode()booleanisEmpty()java.util.Iterator<E>iterator()booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)voidremoveSetChangeListener(ISetChangeListener<? super E> listener)booleanretainAll(java.util.Collection<?> c)intsize()java.lang.Object[]toArray()<T> T[]toArray(T[] a)-
Methods inherited from interface org.eclipse.core.databinding.observable.IObservable
addChangeListener, addDisposeListener, addStaleListener, dispose, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListener
-
-
-
-
Method Detail
-
addSetChangeListener
void addSetChangeListener(ISetChangeListener<? super E> listener)
- Parameters:
listener- the change listener to add; notnull
-
removeSetChangeListener
void removeSetChangeListener(ISetChangeListener<? super E> listener)
- Parameters:
listener- the change listener to remove; notnull
-
getElementType
java.lang.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
boolean contains(java.lang.Object o)
-
iterator
java.util.Iterator<E> iterator()
-
toArray
java.lang.Object[] toArray()
-
toArray
<T> T[] toArray(T[] a)
-
add
boolean add(E o)
-
remove
boolean remove(java.lang.Object o)
-
containsAll
boolean containsAll(java.util.Collection<?> c)
-
addAll
boolean addAll(java.util.Collection<? extends E> c)
-
retainAll
boolean retainAll(java.util.Collection<?> c)
-
removeAll
boolean removeAll(java.util.Collection<?> c)
-
equals
boolean equals(java.lang.Object o)
-
-