public abstract class AbstractQueryPage<T> extends PageWapper<T>
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxPageNo |
protected int |
pageNo |
protected LimitQuery<T> |
query |
DEFAULT_PAGE_NUM, DEFAULT_PAGE_SIZE| Constructor and Description |
|---|
AbstractQueryPage()
Constructor for AbstractQueryPage.
|
AbstractQueryPage(LimitQuery<T> query)
Constructor for AbstractQueryPage.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFirstPageNo()
getFirstPageNo.
|
int |
getMaxPageNo()
Getter for the field
maxPageNo. |
int |
getNextPageNo()
getNextPageNo.
|
int |
getPageNo()
Getter for the field
pageNo. |
int |
getPageSize()
getPageSize.
|
int |
getPreviousPageNo()
getPreviousPageNo.
|
int |
getTotal()
getTotal.
|
boolean |
hasNext()
hasNext.
|
boolean |
hasPrevious()
hasPrevious.
|
Iterator<T> |
iterator()
iterator.
|
abstract Page<T> |
moveTo(int pageNo) |
Page<T> |
next()
next.
|
Page<T> |
previous()
previous.
|
protected void |
setPageData(SinglePage<T> page)
按照单个分页数据设置.
|
add, add, addAll, addAll, clear, contains, containsAll, get, getItems, getPage, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, setPage, size, subList, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streamprotected int pageNo
protected int maxPageNo
protected LimitQuery<T> query
public AbstractQueryPage()
Constructor for AbstractQueryPage.
public AbstractQueryPage(LimitQuery<T> query)
Constructor for AbstractQueryPage.
query - a LimitQuery object.protected void setPageData(SinglePage<T> page)
page - a SinglePage object.public boolean hasNext()
hasNext.
public boolean hasPrevious()
hasPrevious.
public int getFirstPageNo()
getFirstPageNo.
getFirstPageNo in interface Page<T>getFirstPageNo in class PageWapper<T>public int getMaxPageNo()
Getter for the field maxPageNo.
public int getNextPageNo()
getNextPageNo.
public int getPageNo()
Getter for the field pageNo.
public int getPageSize()
getPageSize.
public int getPreviousPageNo()
getPreviousPageNo.
public int getTotal()
getTotal.
Copyright © 2005–2018 The Beangle Software. All rights reserved.