T
- the type of the paginated object.public interface SlicePaginationPicker<T>
Paginator
DSL allowing to choose the pagination type. Two pagination
types are supported: Modifier and Type | Method and Description |
---|---|
KeyValuePicker<T> |
byAttribute(String attributeName)
Choose a key-based pagination type.
|
LimitPicker<Slice<T>,T> |
byOffset(long startingOffset)
Choose an offset-based pagination type.
|
LimitPicker<Slice<T>,T> byOffset(long startingOffset)
startingOffset
- the index of first object that will be returned.KeyValuePicker<T> byAttribute(String attributeName)
attributeName
- the attribute on which the lessThan/greaterThan comparison will be made.Copyright © 2013-2018–2019 SeedStack. All rights reserved.