Pagination#isFirstPage

This commit is contained in:
InsanusMokrassar committed 2020-11-26 15:01:45 +06:00
1 parent 76102e9ab3
commit 023f841fb5
2 files changed
+10

No files matched your search

+4
View File
@@ -2,6 +2,10 @@
## 0.4.6
* `Pagination`
* `Common`
* `Pagination` got new extension: `Pagination#isFirstPage`
## 0.4.5
* `Android`
@@ -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
*/