public class DefaultDisposableInfo extends Object implements DisposableInfo
DisposableInfo implementation.| Constructor and Description |
|---|
DefaultDisposableInfo(Disposable disposable,
StackTraceElement[] stackTrace)
Creates a new
DefaultDisposableInfo with the Disposable
and the stack trace of the moment when the disposable was bound to the
DisposableManager. |
| Modifier and Type | Method and Description |
|---|---|
void |
decReferencesCount() |
StackTraceElement[] |
getBindDisposableStackTrace()
Returns the stack trace of the moment when the
Disposable was
bound. |
Disposable |
getDisposable()
Returns the
Disposable whose info belongs to. |
int |
getReferencesCount()
Returns the count of references
|
void |
incReferencesCount() |
String |
toString() |
public DefaultDisposableInfo(Disposable disposable, StackTraceElement[] stackTrace)
DefaultDisposableInfo with the Disposable
and the stack trace of the moment when the disposable was bound to the
DisposableManager.disposable - to info aboutstackTrace - stack trace of the moment when the Disposable was
boundpublic StackTraceElement[] getBindDisposableStackTrace()
DisposableInfoDisposable was
bound.getBindDisposableStackTrace in interface DisposableInfopublic Disposable getDisposable()
DisposableInfoDisposable whose info belongs to.getDisposable in interface DisposableInfopublic void incReferencesCount()
public void decReferencesCount()
public int getReferencesCount()
DisposableInfogetReferencesCount in interface DisposableInfo