Interface PaginationContext.Builder
-
- Enclosing interface:
- PaginationContext
public static interface PaginationContext.Builder
BuildPaginationContext
instances- Author:
- cdivilly
-
-
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)
-
-
-
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)
-
-