接口 Page<T>

  • 所有已知实现类:
    DefaultPage

    public interface Page<T>
    The model class of pagination
    从以下版本开始:
    2.7.5
    • 方法详细资料

      • 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.
      • getData

        List<T> getData()
        The data of current page
        返回:
        non-null List
      • getDataSize

        default int getDataSize()
        The size of data
        返回:
        positive integer
      • hasNext

        boolean hasNext()
        It indicates has next page or not
        返回:
        if has , return true, or false
      • hasData

        default boolean hasData()
        Returns whether the page has data at all.
        返回: