PageResult.java 499 B

12345678910111213141516171819202122232425
  1. package com.nuliji.tools;
  2. import io.swagger.annotations.ApiModelProperty;
  3. import java.io.Serializable;
  4. import java.util.ArrayList;
  5. import java.util.Collection;
  6. import java.util.List;
  7. /**
  8. * Created by gaojie on 2017/11/7.
  9. */
  10. public class PageResult<T> extends ArrayList<T> implements Serializable {
  11. private long total;
  12. public PageResult(Collection<T> list, long total){
  13. super(list);
  14. this.total = total;
  15. }
  16. public long getTotal() {
  17. return total;
  18. }
  19. }