Package dev. inmo. micro_utils. pagination. utils
Types
Paginated Iterable
Link copied to clipboard
class PaginatedIterable<T>( pageSize: Int, countGetter: () -> Long, paginationResultGetter: Pagination.() -> PaginationResult<T>) : Iterable<T>
Content copied to clipboard
class PaginatedIterable<T>( pageSize: Int, countGetter: () -> Long, paginationResultGetter: Pagination.() -> PaginationResult<T>) : Iterable<T>
Content copied to clipboard
class PaginatedIterable<T>( pageSize: Int, countGetter: () -> Long, paginationResultGetter: Pagination.() -> PaginationResult<T>) : Iterable<T>
Content copied to clipboard
Paginated Iterator
Link copied to clipboard
class PaginatedIterator<T>( pageSize: Int, countGetter: () -> Long, paginationResultGetter: Pagination.() -> PaginationResult<T>) : Iterator<T>
Content copied to clipboard
class PaginatedIterator<T>( pageSize: Int, countGetter: () -> Long, paginationResultGetter: Pagination.() -> PaginationResult<T>) : Iterator<T>
Content copied to clipboard
class PaginatedIterator<T>( pageSize: Int, countGetter: () -> Long, paginationResultGetter: Pagination.() -> PaginationResult<T>) : Iterator<T>
Content copied to clipboard
Functions
do All With Current Paging
Link copied to clipboard
inline fun <T> doAllWithCurrentPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>)
Content copied to clipboard
inline fun <T> doAllWithCurrentPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>)
Content copied to clipboard
inline fun <T> doAllWithCurrentPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>)
Content copied to clipboard
do For All
Link copied to clipboard
inline fun <T> doForAll( initialPagination: Pagination = FirstPagePagination(), paginationMapper: (PaginationResult<T>) -> Pagination?, block: (Pagination) -> PaginationResult<T>)
Content copied to clipboard
inline fun <T> doForAll( initialPagination: Pagination = FirstPagePagination(), paginationMapper: (PaginationResult<T>) -> Pagination?, block: (Pagination) -> PaginationResult<T>)
Content copied to clipboard
inline fun <T> doForAll( initialPagination: Pagination = FirstPagePagination(), paginationMapper: (PaginationResult<T>) -> Pagination?, block: (Pagination) -> PaginationResult<T>)
Content copied to clipboard
do For All With Current Paging
Link copied to clipboard
inline fun <T> doForAllWithCurrentPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>)
Content copied to clipboard
inline fun <T> doForAllWithCurrentPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>)
Content copied to clipboard
inline fun <T> doForAllWithCurrentPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>)
Content copied to clipboard
do For All With Next Paging
Link copied to clipboard
inline fun <T> doForAllWithNextPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>)
Content copied to clipboard
inline fun <T> doForAllWithNextPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>)
Content copied to clipboard
inline fun <T> doForAllWithNextPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>)
Content copied to clipboard
get All
Link copied to clipboard
inline fun <T> getAll( initialPagination: Pagination = FirstPagePagination(), paginationMapper: (PaginationResult<T>) -> Pagination?, block: (Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
inline fun <T> getAll( initialPagination: Pagination = FirstPagePagination(), paginationMapper: (PaginationResult<T>) -> Pagination?, block: (Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
inline fun <T> getAll( initialPagination: Pagination = FirstPagePagination(), paginationMapper: (PaginationResult<T>) -> Pagination?, block: (Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
get All By
Link copied to clipboard
inline fun <T, R> R.getAllBy( initialPagination: Pagination = FirstPagePagination(), paginationMapper: R.(PaginationResult<T>) -> Pagination?, block: R.(Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
inline fun <T, R> R.getAllBy( initialPagination: Pagination = FirstPagePagination(), paginationMapper: R.(PaginationResult<T>) -> Pagination?, block: R.(Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
inline fun <T, R> R.getAllBy( initialPagination: Pagination = FirstPagePagination(), paginationMapper: R.(PaginationResult<T>) -> Pagination?, block: R.(Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
get All By With Current Paging
Link copied to clipboard
inline fun <T, R> R.getAllByWithCurrentPaging(initialPagination: Pagination = FirstPagePagination(), block: R.(Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
inline fun <T, R> R.getAllByWithCurrentPaging(initialPagination: Pagination = FirstPagePagination(), block: R.(Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
inline fun <T, R> R.getAllByWithCurrentPaging(initialPagination: Pagination = FirstPagePagination(), block: R.(Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
get All By With Next Paging
Link copied to clipboard
inline fun <T, R> R.getAllByWithNextPaging(initialPagination: Pagination = FirstPagePagination(), block: R.(Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
inline fun <T, R> R.getAllByWithNextPaging(initialPagination: Pagination = FirstPagePagination(), block: R.(Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
inline fun <T, R> R.getAllByWithNextPaging(initialPagination: Pagination = FirstPagePagination(), block: R.(Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
get All With Current Paging
Link copied to clipboard
inline fun <T> getAllWithCurrentPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
inline fun <T> getAllWithCurrentPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
inline fun <T> getAllWithCurrentPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
get All With Next Paging
Link copied to clipboard
inline fun <T> getAllWithNextPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
inline fun <T> getAllWithNextPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
inline fun <T> getAllWithNextPaging(initialPagination: Pagination = FirstPagePagination(), block: (Pagination) -> PaginationResult<T>): List<T>
Content copied to clipboard
make Iterable
Link copied to clipboard
inline fun <T> makeIterable( noinline countGetter: () -> Long, pageSize: Int = defaultPaginationPageSize, noinline paginationResultGetter: Pagination.() -> PaginationResult<T>): Iterable<T>
Content copied to clipboard
Will make iterable using incoming countGetter and paginationResultGetter
inline fun <T> makeIterable( noinline countGetter: () -> Long, pageSize: Int = defaultPaginationPageSize, noinline paginationResultGetter: Pagination.() -> PaginationResult<T>): Iterable<T>
Content copied to clipboard
Will make iterable using incoming countGetter and paginationResultGetter
inline fun <T> makeIterable( noinline countGetter: () -> Long, pageSize: Int = defaultPaginationPageSize, noinline paginationResultGetter: Pagination.() -> PaginationResult<T>): Iterable<T>
Content copied to clipboard
Will make iterable using incoming countGetter and paginationResultGetter
optionally Reverse
Link copied to clipboard
fun Pagination.optionallyReverse(objectsCount: Int, reverse: Boolean): Pagination
Content copied to clipboard
fun Pagination.optionallyReverse(objectsCount: Long, reverse: Boolean): Pagination
Content copied to clipboard
fun Pagination.optionallyReverse(objectsCount: Int, reverse: Boolean): Pagination
Content copied to clipboard
fun Pagination.optionallyReverse(objectsCount: Long, reverse: Boolean): Pagination
Content copied to clipboard
fun Pagination.optionallyReverse(objectsCount: Int, reverse: Boolean): Pagination
Content copied to clipboard
fun Pagination.optionallyReverse(objectsCount: Long, reverse: Boolean): Pagination
Content copied to clipboard
paginate
Link copied to clipboard