public static class PageRequest.Builder<C> extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PageRequest<C> |
build() |
PageRequest.Builder<C> |
cursor(C cursor) |
PageRequest.Builder<C> |
limit(int limit) |
PageRequest.Builder<C> |
offset(int offset) |
@Nonnull public PageRequest.Builder<C> offset(int offset)
offset
- the number of records to skip from the actual results fetched while creating a page of results@Nonnull public PageRequest.Builder<C> limit(int limit)
limit
- the maximum number of records to be fetched in resulting page.@Nonnull public PageRequest.Builder<C> cursor(@Nullable C cursor)
cursor
- cursor the cursor from where to start page of results being returned.PageRequest.getCursor()
@Nonnull public PageRequest<C> build()
PageRequest
with parameters set in this BuilderCopyright © 2020 Atlassian. All rights reserved.