E - public static class ResultPageHelper.Empty<E> extends Object implements ResultPage<E>
| 构造器和说明 |
|---|
Empty() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCount()
总项数
|
int |
getPage()
当前所处的结果页
|
int |
getPageCount()
总页数
|
int |
getPageSize()
取每页的项数
|
boolean |
gotoPage(int page)
转到指定页(1-getPageCount())
|
boolean |
hasNext() |
boolean |
hasPrev()
是否有前一项
|
Iterator<E> |
iterator() |
E |
move(int pos)
移动到指定位置(相对于当前页)
|
E |
next() |
E |
prev()
上一项(为支持上一项/下一项功能作扩展)
|
void |
remove() |
void |
setPage(int page)
转到指定页(1-getPageCount())
|
void |
setPageSize(int size)
设置每页项数
|
void |
sort(Comparator<E> c,
int limit) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorpublic int getCount()
ResultPagegetCount 在接口中 ResultPage<E>public int getPage()
ResultPagegetPage 在接口中 ResultPage<E>public int getPageCount()
ResultPagegetPageCount 在接口中 ResultPage<E>public int getPageSize()
ResultPagegetPageSize 在接口中 ResultPage<E>public boolean gotoPage(int page)
ResultPagegotoPage 在接口中 ResultPage<E>page - 第N页public boolean hasPrev()
ResultPagehasPrev 在接口中 ResultPage<E>public E move(int pos)
ResultPagemove 在接口中 ResultPage<E>pos - 在当前页的位置(0~getPageSize()-1)public E prev()
ResultPageprev 在接口中 ResultPage<E>public void setPageSize(int size)
ResultPagesetPageSize 在接口中 ResultPage<E>size - 每页项数public void sort(Comparator<E> c, int limit)
public void setPage(int page)
ResultPagesetPage 在接口中 ResultPage<E>page - 第N页Copyright © 2022. All rights reserved.