content: import java.util.Arrays;
  import java.util.List;
  
  /**
   * 分页参数
   * <p>
   * Copyright © 2021 xpc1024 All Rights Reserved
   **/
  public class EsPageInfo<T> {
      /**
       * 当前页
       */
      private int pageNum;
      /**
       * 每页的数量
       */
      private int pageSize;
      /**
       * 当前页的数量
       */
      private int size;
  
      /**
       * 当前页面第一个元素在数据库中的行号
       */
      private int startRow;
      /**
       * 当前页面最后一个元素在数据库中的行号
       */
      private int endRow;
      /**
       * 总页数
       */
      private int pages;
  
      /**
       * 前一页
       */
      private int prePage;
      /**
       * 下一页
       */
      private int nextPage;
  
      /**
       * 是否为第一页
       */
      private boolean isFirstPage = false;
      /**
       * 是否为最后一页
       */
      private boolean isLastPage = false;
      /**
       * 是否有前一页
       */
      private boolean hasPreviousPage = false;
      /**
       * 是否有下一页
       */
      private boolean hasNextPage = false;
      /**
       * 导航页码数
       */
      private int navigatePages;
      /**
       * 所有导航页号
       */
      private int[] navigatePageNums;
      /**
       * 导航条上的第一页
       */
      private int navigateFirstPage;
      /**
       * 导航条上的最后一页
       */
      private int navigateLastPage;
  
      /**
       * 总记录数
       */
      private long total;
      /**
       * 结果集
       */
      private List<T> list;
  
      public int getPageNum() {
          return pageNum;
      }
  
      public void setPageNum(int pageNum) {
          this.pageNum = pageNum;
      }
  
      public int getPageSize() {
          return pageSize;
      }
  
      public void setPageSize(int pageSize) {
          this.pageSize = pageSize;
      }
  
      public int getSize() {
          return size;
      }
  
      public void setSize(int size) {
          this.size = size;
      }
  
      public int getStartRow() {
          return startRow;
      }
  
      public void setStartRow(int startRow) {
          this.startRow = startRow;
      }
  
      public int getEndRow() {
          return endRow;
      }
  
      public void setEndRow(int endRow) {
          this.endRow = endRow;
      }
  
      public int getPages() {
          return pages;
      }
  
      public void setPages(int pages) {
          this.pages = pages;
      }
  
      public int getPrePage() {
          return prePage;
      }
  
      public void setPrePage(int prePage) {
          this.prePage = prePage;
      }
  
      public int getNextPage() {
          return nextPage;
      }
  
      public void setNextPage(int nextPage) {
          this.nextPage = nextPage;
      }
  
      public boolean isFirstPage() {
          return isFirstPage;
      }
  
      public void setFirstPage(boolean firstPage) {
          isFirstPage = firstPage;
      }
  
      public boolean isLastPage() {
          return isLastPage;
      }
  
      public void setLastPage(boolean lastPage) {
          isLastPage = lastPage;
      }
  
      public boolean isHasPreviousPage() {
          return hasPreviousPage;
      }
  
      public void setHasPreviousPage(boolean hasPreviousPage) {
          this.hasPreviousPage = hasPreviousPage;
      }
  
      public boolean isHasNextPage() {
          return hasNextPage;
      }
  
      public void setHasNextPage(boolean hasNextPage) {
          this.hasNextPage = hasNextPage;
      }
  
      public int getNavigatePages() {
          return navigatePages;
      }
  
      public void setNavigatePages(int navigatePages) {
          this.navigatePages = navigatePages;
      }
  
      public int[] getNavigatePageNums() {
          return navigatePageNums;
      }
  
      public void setNavigatePageNums(int[] navigatePageNums) {
          this.navigatePageNums = navigatePageNums;
      }
  
      public int getNavigateFirstPage() {
          return navigateFirstPage;
      }
  
      public void setNavigateFirstPage(int navigateFirstPage) {
          this.navigateFirstPage = navigateFirstPage;
      }
  
      public int getNavigateLastPage() {
          return navigateLastPage;
      }
  
      public void setNavigateLastPage(int navigateLastPage) {
          this.navigateLastPage = navigateLastPage;
      }
  
      public long getTotal() {
          return total;
      }
  
      public void setTotal(long total) {
          this.total = total;
      }
  
      public List<T> getList() {
          return list;
      }
  
      public void setList(List<T> list) {
          this.list = list;
      }
  
      @Override
      public String toString() {
          return "PageInfo{" +
                  "pageNum=" + pageNum +
                  ", pageSize=" + pageSize +
                  ", size=" + size +
                  ", startRow=" + startRow +
                  ", endRow=" + endRow +
                  ", pages=" + pages +
                  ", prePage=" + prePage +
                  ", nextPage=" + nextPage +
                  ", isFirstPage=" + isFirstPage +
                  ", isLastPage=" + isLastPage +
                  ", hasPreviousPage=" + hasPreviousPage +
                  ", hasNextPage=" + hasNextPage +
                  ", navigatePages=" + navigatePages +
                  ", navigatepageNums=" + Arrays.toString(navigatePageNums) +
                  ", navigateFirstPage=" + navigateFirstPage +
                  ", navigateLastPage=" + navigateLastPage +
                  ", total=" + total +
                  ", list=" + list +
                  '}';
      }
  }
  