package com.iailab.sdk.auth.client.common.pojo; import java.io.Serializable; import java.util.ArrayList; import java.util.List; public final class PageResult implements Serializable { private List list; private Long total; public PageResult() { } public PageResult(List list, Long total) { this.list = list; this.total = total; } public PageResult(Long total) { this.list = new ArrayList<>(); this.total = total; } public static PageResult empty() { return new PageResult<>(0L); } public static PageResult empty(Long total) { return new PageResult<>(total); } public List getList() { return list; } public void setList(List list) { this.list = list; } public Long getTotal() { return total; } public void setTotal(Long total) { this.total = total; } }