Package org.fulib.fx.data.disposable
Interface RefreshableDisposable
- All Superinterfaces:
io.reactivex.rxjava3.disposables.Disposable
- All Known Subinterfaces:
RefreshableDisposableContainer
- All Known Implementing Classes:
ItemListDisposable
,RefreshableCompositeDisposable
,Subscriber
public interface RefreshableDisposable
extends io.reactivex.rxjava3.disposables.Disposable
A disposable which can be refreshed.
When the disposable is disposed, it can be refreshed to make it usable again.
-
Method Summary
Methods inherited from interface io.reactivex.rxjava3.disposables.Disposable
dispose, isDisposed
-
Method Details
-
refresh
boolean refresh()Refreshes the disposable if it is disposed. If the disposable is not disposed (or not initialized), this method does nothing.- Returns:
- true if the disposable can now be reused, false otherwise
-
isFresh
boolean isFresh()Returns true if the disposable is not disposed and clean.- Returns:
- true if the disposable is not disposed and clean, false otherwise
-