public interface Page<T>
| 限定符和类型 | 方法和说明 |
|---|---|
List<T> |
getData()
The data of current page
|
default int |
getDataSize()
The size of
data |
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.
|
default boolean |
hasData()
Returns whether the page has data at all.
|
boolean |
hasNext()
It indicates has next page or not
|
int getOffset()
int getPageSize()
int getTotalSize()
int getTotalPages()
default int getDataSize()
databoolean hasNext()
true, or falsedefault boolean hasData()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.