Eclipse Platform
Release 3.3

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

All Superinterfaces:
Collection, IObservable, IObservableCollection, Set
All Known Implementing Classes:
AbstractObservableSet, ObservableSet

public interface IObservableSet
extends Set, IObservableCollection

A set whose changes can be tracked by set change listeners.

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.

Since:
1.0

Method Summary
 boolean add(Object o)
           
 boolean addAll(Collection c)
           
 void addSetChangeListener(ISetChangeListener listener)
           
 boolean contains(Object o)
           
 boolean containsAll(Collection c)
           
 boolean equals(Object o)
           
 Object getElementType()
           
 int hashCode()
           
 boolean isEmpty()
           
 Iterator iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection c)
           
 void removeSetChangeListener(ISetChangeListener listener)
           
 boolean retainAll(Collection c)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 
Methods inherited from interface java.util.Set
clear
 
Methods inherited from interface org.eclipse.core.databinding.observable.IObservable
addChangeListener, addStaleListener, dispose, getRealm, isStale, removeChangeListener, removeStaleListener
 

Method Detail

addSetChangeListener

public void addSetChangeListener(ISetChangeListener listener)
Parameters:
listener -

removeSetChangeListener

public void removeSetChangeListener(ISetChangeListener listener)
Parameters:
listener -

getElementType

public Object getElementType()
Specified by:
getElementType in interface IObservableCollection
Returns:
the element type or null if untyped

size

public int size()
Specified by:
size in interface Set
"TrackedGetter"

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Set
"TrackedGetter"

contains

public boolean contains(Object o)
Specified by:
contains in interface Set
"TrackedGetter"

iterator

public Iterator iterator()
Specified by:
iterator in interface Set
"TrackedGetter"

toArray

public Object[] toArray()
Specified by:
toArray in interface Set
"TrackedGetter"

toArray

public Object[] toArray(Object[] a)
Specified by:
toArray in interface Set
"TrackedGetter"

add

public boolean add(Object o)
Specified by:
add in interface Set
"TrackedGetter"

remove

public boolean remove(Object o)
Specified by:
remove in interface Set
"TrackedGetter"

containsAll

public boolean containsAll(Collection c)
Specified by:
containsAll in interface Set
"TrackedGetter"

addAll

public boolean addAll(Collection c)
Specified by:
addAll in interface Set
"TrackedGetter"

retainAll

public boolean retainAll(Collection c)
Specified by:
retainAll in interface Set
"TrackedGetter"

removeAll

public boolean removeAll(Collection c)
Specified by:
removeAll in interface Set
"TrackedGetter"

equals

public boolean equals(Object o)
Specified by:
equals in interface Set
"TrackedGetter"

hashCode

public int hashCode()
Specified by:
hashCode in interface Set
"TrackedGetter"

Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.