Package org.apache.dubbo.common.utils
Class DefaultPage<T>
java.lang.Object
org.apache.dubbo.common.utils.DefaultPage<T>
- All Implemented Interfaces:
Serializable,Page<T>
The default implementation of
Page- Since:
- 2.7.5
- See Also:
-
Constructor Details
-
DefaultPage
-
-
Method Details
-
getOffset
public int getOffset()Description copied from interface:PageGets the offset of request -
getPageSize
public int getPageSize()Description copied from interface:PageGets the size of request for pagination query- Specified by:
getPageSizein interfacePage<T>- Returns:
- positive integer
-
getTotalSize
public int getTotalSize()Description copied from interface:PageGets the total amount of elements.- Specified by:
getTotalSizein interfacePage<T>- Returns:
- the total amount of elements
-
getTotalPages
public int getTotalPages()Description copied from interface:PageGet the number of total pages.- Specified by:
getTotalPagesin interfacePage<T>- Returns:
- the number of total pages.
-
getData
Description copied from interface:PageThe data of current page -
hasNext
public boolean hasNext()Description copied from interface:PageIt indicates has next page or not
-