类 DefaultPage<T>

    • 构造器详细资料

      • DefaultPage

        public DefaultPage​(int requestOffset,
                           int pageSize,
                           List<T> data,
                           int totalSize)
    • 方法详细资料

      • getOffset

        public int getOffset()
        从接口复制的说明: Page
        Gets the offset of request
        指定者:
        getOffset 在接口中 Page<T>
        返回:
        positive integer
      • getPageSize

        public int getPageSize()
        从接口复制的说明: Page
        Gets the size of request for pagination query
        指定者:
        getPageSize 在接口中 Page<T>
        返回:
        positive integer
      • getTotalSize

        public int getTotalSize()
        从接口复制的说明: Page
        Gets the total amount of elements.
        指定者:
        getTotalSize 在接口中 Page<T>
        返回:
        the total amount of elements
      • getTotalPages

        public int getTotalPages()
        从接口复制的说明: Page
        Get the number of total pages.
        指定者:
        getTotalPages 在接口中 Page<T>
        返回:
        the number of total pages.
      • getData

        public List<T> getData()
        从接口复制的说明: Page
        The data of current page
        指定者:
        getData 在接口中 Page<T>
        返回:
        non-null List
      • hasNext

        public boolean hasNext()
        从接口复制的说明: Page
        It indicates has next page or not
        指定者:
        hasNext 在接口中 Page<T>
        返回:
        if has , return true, or false