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
public interface IObservableSet<E> extends 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. Note that 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(Collection<? extends E> c)voidaddSetChangeListener(ISetChangeListener<? super E> listener)booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanequals(Object o)ObjectgetElementType()Returns the element type of this observable collection, ornullif this observable collection is untyped.inthashCode()booleanisEmpty()Iterator<E>iterator()booleanremove(Object o)booleanremoveAll(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, toArray
-
Methods inherited from interface org.eclipse.core.databinding.observable.IObservable
addChangeListener, addDisposeListener, addStaleListener, dispose, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListener
-
Methods inherited from interface java.util.Set
clear, spliterator
-
-
-
-
Method Detail
-
addSetChangeListener
void addSetChangeListener(ISetChangeListener<? super E> listener)
- Parameters:
listener-
-
removeSetChangeListener
void removeSetChangeListener(ISetChangeListener<? super E> listener)
- Parameters:
listener-
-
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
boolean contains(Object o)
-
toArray
Object[] toArray()
-
toArray
<T> T[] toArray(T[] a)
-
add
boolean add(E o)
-
remove
boolean remove(Object o)
-
containsAll
boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>- "TrackedGetter"
-
addAll
boolean addAll(Collection<? extends E> c)
-
retainAll
boolean retainAll(Collection<?> c)
-
removeAll
boolean removeAll(Collection<?> c)
-
equals
boolean equals(Object o)
-
-