public class Disposable extends Object implements ECPDisposable
ECPDisposable.DisposeListener
Constructor and Description |
---|
Disposable(ECPDisposable delegate)
Constructor of an disposable object.
|
Modifier and Type | Method and Description |
---|---|
void |
addDisposeListener(ECPDisposable.DisposeListener listener)
Adds a
ECPDisposable.DisposeListener to this instance. |
void |
dispose()
Disposes the current instance.
|
protected void |
doDispose()
this method is called so that each implementation can execute specific dispose methods.
|
boolean |
isDisposed()
Whether this instance is already disposed.
|
void |
removeDisposeListener(ECPDisposable.DisposeListener listener)
Removed a
ECPDisposable.DisposeListener from this instance. |
public Disposable(ECPDisposable delegate)
delegate
- the delegate to callpublic final boolean isDisposed()
isDisposed
in interface ECPDisposable
public final void dispose()
dispose
in interface ECPDisposable
public final void addDisposeListener(ECPDisposable.DisposeListener listener)
ECPDisposable.DisposeListener
to this instance.addDisposeListener
in interface ECPDisposable
listener
- the listener to addpublic final void removeDisposeListener(ECPDisposable.DisposeListener listener)
ECPDisposable.DisposeListener
from this instance.removeDisposeListener
in interface ECPDisposable
listener
- the listener to removeprotected void doDispose()
Copyright © 2019. All rights reserved.