LimitAndOffset

data class LimitAndOffset(val limit: Int, val offset: Int)

This class is intended to store data about limit and offset parameters.

page limit: 20

limit: 20 40 60 80 100 120
offset: 0 20 40 60 80 100
|---|---|---|---|---|
1 2 3 4 5 6
(page)

See also

Constructors

Link copied to clipboard
constructor(limit: Int, offset: Int)

Properties

Link copied to clipboard
val limit: Int

Limit is used to reduce the amount of final elements from the end.

Link copied to clipboard
val offset: Int

Offset is used to omit given amount of elements from the start.