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 first moment when the
Disposable was
bound. |
Disposable |
getDisposable()
Returns the
Disposable whose info belongs to. |
StackTraceElement[] |
getFirstBindDisposableStackTrace() |
StackTraceElement[] |
getLastBindDisposableStackTrace() |
int |
getReferencesCount()
Returns the count of references
|
void |
incReferencesCount() |
void |
setLastBindDisposableStackTrace(StackTraceElement[] stackTrace) |
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 StackTraceElement[] getFirstBindDisposableStackTrace()
getFirstBindDisposableStackTrace
in interface DisposableInfo
public StackTraceElement[] getLastBindDisposableStackTrace()
getLastBindDisposableStackTrace
in interface DisposableInfo
public void setLastBindDisposableStackTrace(StackTraceElement[] stackTrace)
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