类 Page<T>

java.lang.Object
org.elsfs.tool.core.page.Page<T>
所有已实现的接口:
IPage<T>

public class Page<T> extends Object implements IPage<T>
the is Page
作者:
zeng
  • 字段详细资料

    • records

      protected List<T> records
    • total

      protected long total
    • size

      protected long size
    • current

      protected long current
  • 构造器详细资料

    • Page

      public Page()
    • Page

      public Page(long current, long size)
    • Page

      public Page(long current, long size, long total)
    • Page

      public Page(long current, long size, boolean searchCount)
    • Page

      public Page(long current, long size, long total, boolean searchCount)
  • 方法详细资料

    • setCurrent

      public void setCurrent(long current)
      设置当前分页数
      指定者:
      setCurrent 在接口中 IPage<T>
      参数:
      current - 当前分页数
    • getCurrent

      public long getCurrent()
      获取当前分页数
      指定者:
      getCurrent 在接口中 IPage<T>
      返回:
      当前分页数
    • setSize

      public void setSize(long size)
      设置分页大小
      指定者:
      setSize 在接口中 IPage<T>
      参数:
      size - 分页大小
    • getSize

      public long getSize()
      获取分页大小
      指定者:
      getSize 在接口中 IPage<T>
      返回:
      分页大小
    • setTotal

      public void setTotal(long total)
      设置获取总记录数
      指定者:
      setTotal 在接口中 IPage<T>
      参数:
      total - 总记录数
    • getTotal

      public long getTotal()
      获取总记录数
      指定者:
      getTotal 在接口中 IPage<T>
      返回:
      总记录数
    • getRecords

      public List<T> getRecords()
      获取 分页数据
      指定者:
      getRecords 在接口中 IPage<T>
      返回:
      分页数据
    • setRecords

      public void setRecords(List<T> records)
      设置 分页数据
      指定者:
      setRecords 在接口中 IPage<T>
      参数:
      records - 数据
    • getPageSize

      public long getPageSize()
      分页大小
      指定者:
      getPageSize 在接口中 IPage<T>
      返回:
      分页大小