org.eclipse.emf.edit.provider
Class Disposable

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractSet
          extended byjava.util.HashSet
              extended byorg.eclipse.emf.edit.provider.Disposable
All Implemented Interfaces:
Cloneable, Collection, IDisposable, Serializable, Set

public class Disposable
extends HashSet
implements IDisposable

This implements IDisposable as a set IDisposables that can in turn be disposed.

See Also:
Serialized Form

Constructor Summary
Disposable()
          This creates an empty instance.
Disposable(Collection disposables)
          This creates an instance with containing all the given disposables.
 
Method Summary
 boolean add(Object object)
           
 boolean addAll(Collection collection)
           
 void dispose()
          This is called to dispose the disposables.
 
Methods inherited from class java.util.HashSet
clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

Disposable

public Disposable()
This creates an empty instance.


Disposable

public Disposable(Collection disposables)
This creates an instance with containing all the given disposables.

Method Detail

dispose

public void dispose()
This is called to dispose the disposables.

Specified by:
dispose in interface IDisposable

add

public boolean add(Object object)
Specified by:
add in interface Set

addAll

public boolean addAll(Collection collection)
Specified by:
addAll in interface Set

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.