Eclipse Platform
Release 3.6

org.eclipse.core.databinding.observable.set
Interface IObservableSet

All Superinterfaces:
java.util.Collection, IObservable, IObservableCollection, java.lang.Iterable, java.util.Set
All Known Subinterfaces:
IViewerObservableSet
All Known Implementing Classes:
AbstractObservableSet, ComputedSet, DecoratingObservableSet, ListToSetAdapter, MappedSet, ObservableSet, UnionSet, WritableSet

public interface IObservableSet
extends java.util.Set, IObservableCollection

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
 boolean add(java.lang.Object o)
           
 boolean addAll(java.util.Collection c)
           
 void addSetChangeListener(ISetChangeListener listener)
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection c)
           
 boolean equals(java.lang.Object o)
           
 java.lang.Object getElementType()
          Returns the element type of this observable collection, or null if this observable collection is untyped.
 int hashCode()
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection c)
           
 void removeSetChangeListener(ISetChangeListener listener)
           
 boolean retainAll(java.util.Collection c)
           
 int size()
           
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] a)
           
 
Methods inherited from interface java.util.Set
clear
 
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 listener)
Parameters:
listener -

removeSetChangeListener

void removeSetChangeListener(ISetChangeListener listener)
Parameters:
listener -

getElementType

java.lang.Object getElementType()
Description copied from interface: IObservableCollection
Returns the element type of this observable collection, or null if this observable collection is untyped.

Specified by:
getElementType in interface IObservableCollection
Returns:
the element type or null if untyped

size

int size()
Specified by:
size in interface java.util.Collection
Specified by:
size in interface java.util.Set
"TrackedGetter"

isEmpty

boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection
Specified by:
isEmpty in interface java.util.Set
"TrackedGetter"

contains

boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection
Specified by:
contains in interface java.util.Set
"TrackedGetter"

iterator

java.util.Iterator iterator()
Specified by:
iterator in interface java.util.Collection
Specified by:
iterator in interface java.lang.Iterable
Specified by:
iterator in interface java.util.Set
"TrackedGetter"

toArray

java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection
Specified by:
toArray in interface java.util.Set
"TrackedGetter"

toArray

java.lang.Object[] toArray(java.lang.Object[] a)
Specified by:
toArray in interface java.util.Collection
Specified by:
toArray in interface java.util.Set
"TrackedGetter"

add

boolean add(java.lang.Object o)
Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.Set
"TrackedGetter"

remove

boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection
Specified by:
remove in interface java.util.Set
"TrackedGetter"

containsAll

boolean containsAll(java.util.Collection c)
Specified by:
containsAll in interface java.util.Collection
Specified by:
containsAll in interface java.util.Set
"TrackedGetter"

addAll

boolean addAll(java.util.Collection c)
Specified by:
addAll in interface java.util.Collection
Specified by:
addAll in interface java.util.Set
"TrackedGetter"

retainAll

boolean retainAll(java.util.Collection c)
Specified by:
retainAll in interface java.util.Collection
Specified by:
retainAll in interface java.util.Set
"TrackedGetter"

removeAll

boolean removeAll(java.util.Collection c)
Specified by:
removeAll in interface java.util.Collection
Specified by:
removeAll in interface java.util.Set
"TrackedGetter"

equals

boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Collection
Specified by:
equals in interface java.util.Set
Overrides:
equals in class java.lang.Object
"TrackedGetter"

hashCode

int hashCode()
Specified by:
hashCode in interface java.util.Collection
Specified by:
hashCode in interface java.util.Set
Overrides:
hashCode in class java.lang.Object
"TrackedGetter"

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.