Interface PaginationContext.Builder
-
- Enclosing interface:
- PaginationContext
public static interface PaginationContext.Builder
BuildPaginationContext
instances- Author:
- cdivilly
-
<section role="region">
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PaginationContext
build()
Create the immutablePaginationContext
instancePaginationContext.Builder
itemOffset(long itemOffset)
Specify the offset of the first item to appear in the pagePaginationContext.Builder
limit(long limit)
Specify the maximum number of items in the pagePaginationContext.Builder
pageOffset(long pageOffset)
-
-
<section role="region">
-
Method Detail
-
build
PaginationContext build()
Create the immutablePaginationContext
instance- Returns:
PaginationContext
instance
-
itemOffset
PaginationContext.Builder itemOffset(long itemOffset)
Specify the offset of the first item to appear in the page- Parameters:
itemOffset
- The item offset- Returns:
- self
-
limit
PaginationContext.Builder limit(long limit)
Specify the maximum number of items in the page- Parameters:
limit
- The maximum number of items- Returns:
- self
-
pageOffset
PaginationContext.Builder pageOffset(long pageOffset)
-
-