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()
DisposableInfo
Disposable
was
bound.getBindDisposableStackTrace
in interface DisposableInfo
public Disposable getDisposable()
DisposableInfo
Disposable
whose info belongs to.getDisposable
in interface DisposableInfo
public void incReferencesCount()
public void decReferencesCount()
public int getReferencesCount()
DisposableInfo
getReferencesCount
in interface DisposableInfo