Class BasePageResult<T>

java.lang.Object
com.imyeyu.java.bean.BasePageResult<T>

public class BasePageResult<T> extends Object
分页结果
Since:
2025-07-25 11:04
Author:
夜雨
  • Field Details

    • total

      protected long total
      总数据量
    • pages

      protected int pages
      总页数
    • list

      protected List<T> list
      分页数据列表
  • Constructor Details

    • BasePageResult

      public BasePageResult()
  • Method Details

    • isEmpty

      public boolean isEmpty()
      结果是否为空
      Returns:
      true 为空
    • isNotEmpty

      public boolean isNotEmpty()
      结果是否非空
      Returns:
      true 为非空
    • setTotal

      public void setTotal(long total)
      设置总数据量
      Parameters:
      total - 总数据量
    • setList

      public void setList(List<T> list)
      设置分页数据列表
      Parameters:
      list - 分页数据列表
    • getTotal

      public long getTotal()
      总数据量
    • getPages

      public int getPages()
      总页数
    • getList

      public List<T> getList()
      分页数据列表
    • setPages

      public void setPages(int pages)
      总页数
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object