| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| pack-priv OpenHashSet |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CompositeDisposable(Disposable...
the array of Disposables to start with disposables)Creates a CompositeDisposables with the given array of initial elements. |
| public | CompositeDisposable(Iterable<? extends Disposable>
the Iterable sequence of Disposables to start with disposables)Creates a CompositeDisposables with the given Iterable sequence of initial elements. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if successful, false if this container has been disposedthe disposable to add, not null disposable)Implements io. |
| public boolean | Returns: true if the operation was successful, false if the container has been disposedthe array of Disposables disposables)Atomically adds the given array of Disposables to the container or disposes them all if the container has been disposed. |
| public void | |
| public boolean | Returns: true if the operation was successfulthe disposable to remove, not null disposable)Implements io. |
| public void | dispose()
Implements io. |
| pack-priv void | dispose(OpenHashSet<Disposable>
the OpenHashSet to dispose elements of set)Dispose the contents of the OpenHashSet by suppressing non-fatal Throwables till the end. |
| public boolean | isDisposed()
Implements io. |
| public boolean | Returns: true if the operation was successfulthe disposable to remove and dispose, not null disposable)Implements io. |
| public int | Returns: the number of currently held DisposablesReturns the number of currently held Disposables. |
| disposed | back to summary |
|---|---|
| pack-priv volatile boolean disposed | |
| resources | back to summary |
|---|---|
| pack-priv OpenHashSet<Disposable> resources | |
| CompositeDisposable | back to summary |
|---|---|
| public CompositeDisposable() Creates an empty CompositeDisposable. | |
| CompositeDisposable | back to summary |
|---|---|
| public CompositeDisposable(Disposable... disposables) Creates a CompositeDisposables with the given array of initial elements.
| |
| CompositeDisposable | back to summary |
|---|---|
| public CompositeDisposable(Iterable<? extends Disposable> disposables) Creates a CompositeDisposables with the given Iterable sequence of initial elements.
| |
| add | back to summary |
|---|---|
| public boolean add(Disposable disposable) Implements io. Adds a disposable to this container or disposes it if the container has been disposed.
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(Disposable... disposables) Atomically adds the given array of Disposables to the container or disposes them all if the container has been disposed.
| |
| clear | back to summary |
|---|---|
| public void clear() Atomically clears the container, then disposes all the previously contained Disposables. | |
| delete | back to summary |
|---|---|
| public boolean delete(Disposable disposable) Implements io. Removes (but does not dispose) the given disposable if it is part of this container.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements io. Doc from io. Dispose the resource, the operation should be idempotent.
| |
| dispose | back to summary |
|---|---|
| pack-priv void dispose(OpenHashSet<Disposable> set) Dispose the contents of the OpenHashSet by suppressing non-fatal Throwables till the end.
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Implements io. Doc from io. Returns true if this resource has been disposed.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Disposable disposable) Implements io. Removes and disposes the given disposable if it is part of this container.
| |
| size | back to summary |
|---|---|
| public int size() Returns the number of currently held Disposables.
| |