public class DefaultPage<T> extends Object implements Page<T>, Serializable
Page| Constructor and Description |
|---|
DefaultPage(int requestOffset,
int pageSize,
List<T> data,
int totalSize) |
| Modifier and Type | Method and Description |
|---|---|
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
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataSize, hasDatapublic int getOffset()
Pagepublic int getPageSize()
PagegetPageSize in interface Page<T>public int getTotalSize()
PagegetTotalSize in interface Page<T>public int getTotalPages()
PagegetTotalPages in interface Page<T>Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.