Interface Page<T>

Type Parameters:
T - 数据类型
All Known Implementing Classes:
PageRes

public interface Page<T>
分页相应信息接口
Author:
Maning
  • Method Summary

    Modifier and Type
    Method
    Description
    数据
    static <T> Page<T>
    of(long total, List<T> data)
    默认分页实现
    long
    总条数
  • Method Details

    • of

      static <T> Page<T> of(long total, List<T> data)
      默认分页实现
      Type Parameters:
      T - 类型
      Parameters:
      total - 总条数
      data - 数据
      Returns:
      默认分页实例
    • data

      List<T> data()
      数据
      Returns:
      数据
    • total

      long total()
      总条数
      Returns:
      总条数