D2ErrorCollectionRepository

class D2ErrorCollectionRepository : ReadOnlyCollectionRepositoryImpl<D2Error, D2ErrorCollectionRepository>

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun blockingCount(): Int

Get the count of elements. Important: this is a blocking method and it should not be executed in the main thread. Consider the asynchronous version .count.

Link copied to clipboard
open override fun blockingGet(): List<D2Error>

Get the list of objects in a synchronous way. Important: this is a blocking method and it should not be executed in the main thread. Consider the asynchronous version .get.

Link copied to clipboard
open override fun blockingIsEmpty(): Boolean

Check if selection of objects with applied filters is empty in a synchronous way. Important: this is a blocking method and it should not be executed in the main thread. Consider the asynchronous version .isEmpty.

Link copied to clipboard
fun byCreated(): DateFilterConnector<D2ErrorCollectionRepository>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun byErrorDescription(): StringFilterConnector<D2ErrorCollectionRepository>
Link copied to clipboard
fun byHttpErrorCode(): IntegerFilterConnector<D2ErrorCollectionRepository>
Link copied to clipboard
fun byUrl(): StringFilterConnector<D2ErrorCollectionRepository>
Link copied to clipboard
open override fun count(): Single<Int>

Get the count of elements in an asynchronous way, returning a Single.

Link copied to clipboard
open override fun get(): Single<List<D2Error>>

Get the objects in scope in an asynchronous way, returning a Single<List>.

Link copied to clipboard
open override fun getPaged(pageSize: Int): LiveData<PagedList<D2Error>>

Handy method to use in conjunction with PagedListAdapter to build paged lists.

Link copied to clipboard
fun getPager(pageSize: Int): Pager<D2Error, D2Error>
Link copied to clipboard
open override fun getPagingData(pageSize: Int): Flow<PagingData<D2Error>>

Uses Paging3 library and return a Flow

Link copied to clipboard
open override fun isEmpty(): Single<Boolean>

Check if selection of objects in current scope with applied filters is empty in an asynchronous way, returning a Single.

Link copied to clipboard

Get a ReadOnlyObjectRepository pointing to the first element in the list.