|
|
@ -55,7 +55,7 @@ public class CleanJournalCache {
|
|
|
|
for (int pageNum = 1; (pageNum - 1) * pageSize < list.size(); pageNum++) {
|
|
|
|
for (int pageNum = 1; (pageNum - 1) * pageSize < list.size(); pageNum++) {
|
|
|
|
int startIndex = (pageNum - 1) * pageSize;
|
|
|
|
int startIndex = (pageNum - 1) * pageSize;
|
|
|
|
int endIndex = pageNum * pageSize - 1;
|
|
|
|
int endIndex = pageNum * pageSize - 1;
|
|
|
|
if (endIndex > list.size()) {
|
|
|
|
if (endIndex >= list.size()) {
|
|
|
|
return pageNum;
|
|
|
|
return pageNum;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (list.get(startIndex) >= value && list.get(endIndex) <= value) {
|
|
|
|
if (list.get(startIndex) >= value && list.get(endIndex) <= value) {
|
|
|
|