public interface DisposableContainer
Modifier and Type | Method and Description |
---|---|
boolean |
add(Disposable d)
Adds a disposable to this container or disposes it if the
container has been disposed.
|
boolean |
delete(Disposable d)
Removes but does not dispose the given disposable if it is part of this
container.
|
boolean |
remove(Disposable d)
Removes and disposes the given disposable if it is part of this
container.
|
boolean add(Disposable d)
d
- the disposable to add, not nullboolean remove(Disposable d)
d
- the disposable to remove and dispose, not nullboolean delete(Disposable d)
d
- the disposable to remove, not null