mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-12-22 16:47:15 +00:00
Pagination#isFirstPage
This commit is contained in:
parent
76102e9ab3
commit
023f841fb5
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user