#820 - #718 Removed PagedList.getPageIndex() - Can it be added back?

This commit is contained in:
Robin Bygrave committed 2016-09-22 20:57:17 +12:00
1 parent a0f2ebe448
commit b753ce3a73
3 files changed
+121

No files matched your search

@@ -73,6 +73,14 @@ public class LimitOffsetPagedList<T> implements PagedList<T> {
}
}
@Override
public int getPageIndex() {
if (firstRow == 0) {
return 0;
}
return ((firstRow - 1) / maxRows) + 1;
}
public int getTotalPageCount() {
int rowCount = getTotalCount();