public class Disposable extends java.util.HashSet<java.lang.Object> implements IDisposable
IDisposable
as a set IDisposables that can in turn be disposed.Constructor and Description |
---|
Disposable()
This creates an empty instance.
|
Disposable(java.util.Collection<?> disposables)
This creates an instance with containing all the given disposables.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object object) |
boolean |
addAll(java.util.Collection<?> collection) |
void |
dispose()
This is called to dispose the disposables.
|
clear, clone, contains, isEmpty, iterator, remove, size
containsAll, retainAll, toArray, toArray, toString
public Disposable()
public Disposable(java.util.Collection<?> disposables)
public void dispose()
dispose
in interface IDisposable
public boolean add(java.lang.Object object)
add
in interface java.util.Collection<java.lang.Object>
add
in interface java.util.Set<java.lang.Object>
add
in class java.util.HashSet<java.lang.Object>
public boolean addAll(java.util.Collection<?> collection)
addAll
in interface java.util.Collection<java.lang.Object>
addAll
in interface java.util.Set<java.lang.Object>
addAll
in class java.util.AbstractCollection<java.lang.Object>