How do you create the instance of PageRequest to get the data for the first page of the application containing 15 records from a database?
Java
-
Pageable pageable = PageRequest.of(0, 15) -
Pageable pageable = PageRequest.of(15, 0) -
Pageable pageable = PageRequest.of(1, 15) -
Pageable pageable = PageRequest.of(15, 1)
Kotlin
-
val pageable: Pageable = PageRequest.of(0, 15) -
val pageable: Pageable = PageRequest.of(15, 0) -
val pageable: Pageable = PageRequest.of(1, 15) -
val pageable: Pageable = PageRequest.of(15, 1)