public class DisposeUtils
extends java.lang.Object
Constructor and Description |
---|
DisposeUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
bind(java.util.Collection list) |
static void |
bind(Disposable disposable) |
static void |
bind(java.lang.Object obj) |
static void |
dispose(Disposable disposable)
Disposes a
Disposable object, checking if it is null. |
static void |
dispose(java.lang.Object obj) |
static void |
disposeQuietly(Disposable disposable) |
static void |
disposeQuietly(java.lang.Object obj) |
static DisposableInfo |
getDisposableInfo(Disposable disposable) |
static DisposableInfo |
getDisposableInfo(int code) |
static int |
getReferences(Disposable disposable) |
static boolean |
isNullOrDisposed(Disposable disposable) |
static boolean |
release(Disposable disposable) |
public static void dispose(Disposable disposable)
Disposable
object, checking if it is null.disposable
- to disposepublic static void dispose(java.lang.Object obj)
public static void disposeQuietly(Disposable disposable)
disposable
- public static void disposeQuietly(java.lang.Object obj)
public static void bind(Disposable disposable)
disposable
- public static void bind(java.util.Collection list)
disposable
- public static void bind(java.lang.Object obj)
obj
- public static boolean release(Disposable disposable)
disposable
- public static DisposableInfo getDisposableInfo(Disposable disposable)
public static DisposableInfo getDisposableInfo(int code)
public static int getReferences(Disposable disposable)
public static boolean isNullOrDisposed(Disposable disposable)