public class DefaultPage<T> extends Object implements Page<T>, Serializable
Page| 构造器和说明 |
|---|
DefaultPage(int requestOffset,
int pageSize,
List<T> data,
int totalSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<T> |
getData()
The data of current page
|
int |
getOffset()
Gets the offset of request
|
int |
getPageSize()
Gets the size of request for pagination query
|
int |
getTotalPages()
Get the number of total pages.
|
int |
getTotalSize()
Gets the total amount of elements.
|
boolean |
hasNext()
It indicates has next page or not
|
getDataSize, hasDatapublic int getOffset()
Pagepublic int getPageSize()
PagegetPageSize 在接口中 Page<T>public int getTotalSize()
PagegetTotalSize 在接口中 Page<T>public int getTotalPages()
PagegetTotalPages 在接口中 Page<T>Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.