Pagination#isFirstPage

This commit is contained in:
InsanusMokrassar 2020-11-26 15:01:45 +06:00
parent 76102e9ab3
commit 023f841fb5
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,10 @@
## 0.4.6
* `Pagination`
* `Common`
* `Pagination` got new extension: `Pagination#isFirstPage`
## 0.4.5
* `Android`

View File

@ -22,6 +22,12 @@ interface Pagination {
val size: Int
}
/**
* Logical shortcut for comparison that page is 0
*/
inline val Pagination.isFirstPage
get() = page == 0
/**
* First number in index of objects. It can be used as offset for databases or other data sources
*/