Package org.aksw.commons.util.page
Class PaginatorBase<T>
java.lang.Object
org.aksw.commons.util.page.PaginatorBase<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Paginator<T>
- Direct Known Subclasses:
PaginatorImpl
Item-based paginator implementation
- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected longprotected long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TcreatePage(long pageNumber, long pageStart, long pageEnd, boolean isActive) createPages(long numItems, long itemOffset)
-
Field Details
-
itemsPerPage
protected long itemsPerPage -
showProximity
protected long showProximity -
visiblePages
protected long visiblePages
-
-
Constructor Details
-
PaginatorBase
public PaginatorBase(long itemsPerPage)
-
-
Method Details
-
createPages
- Specified by:
createPagesin interfacePaginator<T>- Parameters:
numItems-itemOffset- The page containing this offset is marked as active- Returns:
-
createPage
-