interface Page<T>
getContents
()
|
Returns this page's data.
Signature
abstract fun getContents(): List<T> Returns
List
|
getIndex
()
|
Returns this page's index.
Page indices are not like array indices. For the purposes of storing multiple pages in a data structure, Pages have three guarantees:
Using a SortedMap data structure with indices as keys will order pages correctly.
The integer value of the index has no semantic meaning beyond what's described here. Page indices can be negative.
Signature
abstract fun getIndex(): Int Returns
Int
|