{% setvar book_path %}/reference/multifile/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PagingRx

public final class PagingRx


Summary

Public methods

static final @NonNull PagingData<@NonNull T>
<T extends Object> filter(
    @NonNull PagingData<@NonNull T> receiver,
    @NonNull Function1<@NonNull T, @NonNull Single<@NonNull Boolean>> predicate
)

Returns a PagingData containing only elements matching the given predicate.

static final @NonNull Observable<@NonNull PagingData<@NonNull Value>>
getObservable(@NonNull Pager<@NonNull Key, @NonNull Value> receiver)

An Observable of PagingData, which mirrors the stream provided by Pager.flow, but exposes it as an Observable.

Public methods

filter

public static final @NonNull PagingData<@NonNull T> <T extends Object> filter(
    @NonNull PagingData<@NonNull T> receiver,
    @NonNull Function1<@NonNull T, @NonNull Single<@NonNull Boolean>> predicate
)

Returns a PagingData containing only elements matching the given predicate.

getObservable

public static final @NonNull Observable<@NonNull PagingData<@NonNull Value>> getObservable(@NonNull Pager<@NonNull Key, @NonNull Value> receiver)

An Observable of PagingData, which mirrors the stream provided by Pager.flow, but exposes it as an Observable.