接口 Page<T>
-
- 所有已知实现类:
DefaultPage
public interface Page<T>The model class of pagination- 从以下版本开始:
- 2.7.5
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 List<T>getData()The data of current pagedefault intgetDataSize()The size ofdataintgetOffset()Gets the offset of requestintgetPageSize()Gets the size of request for pagination queryintgetTotalPages()Get the number of total pages.intgetTotalSize()Gets the total amount of elements.default booleanhasData()Returns whether the page has data at all.booleanhasNext()It indicates has next page or not
-
-
-
方法详细资料
-
getOffset
int getOffset()
Gets the offset of request- 返回:
- positive integer
-
getPageSize
int getPageSize()
Gets the size of request for pagination query- 返回:
- positive integer
-
getTotalSize
int getTotalSize()
Gets the total amount of elements.- 返回:
- the total amount of elements
-
getTotalPages
int getTotalPages()
Get the number of total pages.- 返回:
- the number of total pages.
-
getDataSize
default int getDataSize()
The size ofdata- 返回:
- positive integer
-
hasNext
boolean hasNext()
It indicates has next page or not- 返回:
- if has , return
true, orfalse
-
hasData
default boolean hasData()
Returns whether the page has data at all.- 返回:
-
-