public static final class Chit.Settable extends Object implements Chit, Disposable
Chit.Settable
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
boolean |
isDisposed()
Returns whether the resource is disposed.
|
void |
runWhenDisposed(Runnable whenDisposed)
Adds a listener which will run when the given element is disposed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
alreadyDisposed, guard, settable
public void dispose()
dispose
in interface Disposable
public boolean isDisposed()
Chit
isDisposed
in interface Chit
isDisposed
in interface Disposable
public void runWhenDisposed(Runnable whenDisposed)
Chit
Chit.isDisposed()
), the runnable will be executed immediately.runWhenDisposed
in interface Chit