public class PageData extends Object implements List<Bean>, Serializable
| 构造器和说明 |
|---|
PageData() |
PageData(List<Bean> data,
int pageSize,
int pageNumber,
int recordCount) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(Bean o) |
void |
add(int index,
Bean element) |
boolean |
addAll(Collection<? extends Bean> c) |
boolean |
addAll(int index,
Collection<? extends Bean> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
int[] |
genNearPageNumbers(int count)
生成前后相邻的页码
|
Bean |
get(int index)
获取指定Bean
|
List<Bean> |
getData()
获取该页数据
|
int |
getFirstPageNumber()
获取第一页页码
|
String |
getId() |
int |
getLastPageNumber()
获取最后页页码
|
int[] |
getNearPageNumbers()
获取前后相邻的页码
|
int |
getNextPageNumber()
获取后一页页码
|
int |
getPageCount()
获取总页数
|
int |
getPageNumber()
获取该页页码
|
int |
getPageSize()
获取每页记录数
|
int |
getPreviousPageNumber()
获取前一页页码
|
int |
getRecordCount()
获取总记录数
|
int |
getSize()
获取该页数据条数
|
int |
indexOf(Object o) |
boolean |
isEmpty() |
boolean |
isHasNextPage()
是否有下一页
|
Iterator<Bean> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<Bean> |
listIterator() |
ListIterator<Bean> |
listIterator(int index) |
Bean |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
Bean |
set(int index,
Bean element) |
void |
setData(List<Bean> data)
设置该页数据
|
void |
setId(String id) |
void |
setPageNumber(int pageNumber)
设置该页页码
|
void |
setPageSize(int pageSize)
设置每页记录数
|
void |
setRecordCount(int recordCount)
设置总记录数
|
int |
size() |
List<Bean> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic String getId()
public void setId(String id)
public int getPageSize()
public void setPageSize(int pageSize)
pageSize - 每页记录数public int getRecordCount()
public void setRecordCount(int recordCount)
recordCount - 总记录数public int getPageCount()
public int getPreviousPageNumber()
public int getNextPageNumber()
public boolean isHasNextPage()
public int getFirstPageNumber()
public int getLastPageNumber()
public int[] genNearPageNumbers(int count)
count - 页码个数public int[] getNearPageNumbers()
public int getSize()
public int getPageNumber()
public void setPageNumber(int pageNumber)
pageNumber - 页码public boolean addAll(Collection<? extends Bean> c)
public boolean addAll(int index,
Collection<? extends Bean> c)
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll 在接口中 Collection<Bean>containsAll 在接口中 List<Bean>public int lastIndexOf(Object o)
lastIndexOf 在接口中 List<Bean>public ListIterator<Bean> listIterator()
listIterator 在接口中 List<Bean>public ListIterator<Bean> listIterator(int index)
listIterator 在接口中 List<Bean>public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public <T> T[] toArray(T[] a)
Copyright © 2020. All Rights Reserved.