Interface PaginationContext.Builder
-
- Enclosing interface:
- PaginationContext
public static interface PaginationContext.BuilderBuildPaginationContextinstances- Author:
- cdivilly
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PaginationContextbuild()Create the immutablePaginationContextinstancePaginationContext.BuilderitemOffset(long itemOffset)Specify the offset of the first item to appear in the pagePaginationContext.Builderlimit(long limit)Specify the maximum number of items in the pagePaginationContext.BuilderpageOffset(long pageOffset)
-
-
-
Method Detail
-
build
PaginationContext build()
Create the immutablePaginationContextinstance- Returns:
PaginationContextinstance
-
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)
-
-