org.eclipse.emf.edit.provider
Class Disposable
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
java.util.HashSet
org.eclipse.emf.edit.provider.Disposable
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, IDisposable, java.io.Serializable, java.util.Set
- public class Disposable
- extends java.util.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(java.util.Collection disposables)
This creates an instance with containing all the given disposables. |
Method Summary |
boolean |
add(java.lang.Object object)
|
boolean |
addAll(java.util.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 |
Disposable
public Disposable()
- This creates an empty instance.
Disposable
public Disposable(java.util.Collection disposables)
- This creates an instance with containing all the given disposables.
dispose
public void dispose()
- This is called to dispose the disposables.
- Specified by:
dispose
in interface IDisposable
add
public boolean add(java.lang.Object object)
- Specified by:
add
in interface java.util.Set
addAll
public boolean addAll(java.util.Collection collection)
- Specified by:
addAll
in interface java.util.Set