Eclipse Platform
Release 3.3

org.eclipse.core.databinding.observable.set
Class UnionSet

java.lang.Object
  extended byorg.eclipse.core.databinding.observable.ChangeManager
      extended byorg.eclipse.core.databinding.observable.AbstractObservable
          extended byorg.eclipse.core.databinding.observable.set.ObservableSet
              extended byorg.eclipse.core.databinding.observable.set.UnionSet
All Implemented Interfaces:
Collection, IObservable, IObservableCollection, IObservableSet, Set

public final class UnionSet
extends ObservableSet

Represents a set consisting of the union of elements from one or more other sets. This object does not need to be explicitly disposed. If nobody is listening to the UnionSet, the set will remove its listeners.

This class is thread safe. All state accessing methods must be invoked from the current realm. Methods for adding and removing listeners may be invoked from any thread.

Since:
1.0

Field Summary
 
Fields inherited from class org.eclipse.core.databinding.observable.set.ObservableSet
elementType, wrappedSet
 
Constructor Summary
UnionSet(IObservableSet[] childSets)
           
 
Method Summary
protected  void firstListenerAdded()
           
protected  void getterCalled()
           
 boolean isStale()
          Returns whether the state of this observable is stale and is expected to change soon.
protected  void lastListenerRemoved()
           
 
Methods inherited from class org.eclipse.core.databinding.observable.set.ObservableSet
add, addAll, addSetChangeListener, clear, contains, containsAll, dispose, equals, fireChange, fireSetChange, getElementType, hashCode, isEmpty, iterator, remove, removeAll, removeSetChangeListener, retainAll, setStale, setWrappedSet, size, toArray, toArray, toString
 
Methods inherited from class org.eclipse.core.databinding.observable.AbstractObservable
addChangeListener, addListener, addStaleListener, checkRealm, fireEvent, fireStale, getRealm, hasListeners, removeChangeListener, removeListener, removeStaleListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.databinding.observable.IObservable
addChangeListener, addStaleListener, getRealm, removeChangeListener, removeStaleListener
 

Constructor Detail

UnionSet

public UnionSet(IObservableSet[] childSets)
Parameters:
childSets -
Method Detail

isStale

public boolean isStale()
Description copied from interface: IObservable
Returns whether the state of this observable is stale and is expected to change soon. A non-stale observable that becomes stale will notify its stale listeners. A stale object that becomes non-stale does so by changing its state and notifying its change listeners, it does not notify its stale listeners about becoming non-stale. Clients that do not expect asynchronous changes may ignore staleness of observable objects.

Specified by:
isStale in interface IObservable
Overrides:
isStale in class ObservableSet
Returns:
Returns the stale state.

firstListenerAdded

protected void firstListenerAdded()

lastListenerRemoved

protected void lastListenerRemoved()

getterCalled

protected void getterCalled()
Overrides:
getterCalled in class ObservableSet

Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

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