public final class DisposableUtils extends Object
Disposable
type.Modifier and Type | Method and Description |
---|---|
static void |
disposeQuietly(Disposable... disposables)
Calls the
Disposable.dispose() method if the instance is not null. |
public static void disposeQuietly(Disposable... disposables)
Disposable.dispose()
method if the instance is not null. If any exceptions
are thrown during disposal, suppress them.disposables
- the Disposable
s to dispose