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
public abstract class PaginatorBase<T> extends Object implements Paginator<T>
Item-based paginator implementation- Author:
- raven
-
-
Field Summary
Fields Modifier and Type Field Description protected longitemsPerPageprotected longshowProximityprotected longvisiblePages
-
Constructor Summary
Constructors Constructor Description PaginatorBase(long itemsPerPage)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TcreatePage(long pageNumber, long pageStart, long pageEnd, boolean isActive)List<T>createPages(long numItems, long itemOffset)
-
-
-
Method Detail
-
createPages
public List<T> createPages(long numItems, long itemOffset)
- Specified by:
createPagesin interfacePaginator<T>- Parameters:
numItems-itemOffset- The page containing this offset is marked as active- Returns:
-
createPage
protected abstract T createPage(long pageNumber, long pageStart, long pageEnd, boolean isActive)
-
-