All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.envisioniot.enos.enosapi.common.response.EnOSPage Maven / Gradle / Ivy

There is a newer version: 2.1.5
Show newest version
package com.envisioniot.enos.enosapi.common.response;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.util.List;

/**
 * @Description: EnOSResponse分页信息
 */
public class EnOSPage implements Serializable {

    private static final long serialVersionUID = -5537308055898546422L;

    private int page; // 当前分页号

    private int pageSize; // 每页最多显示数据条数

    private int totalSize; // 总数据条数

    private List data; //  当前页数据条数

    public EnOSPage() {

    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(int totalSize) {
        this.totalSize = totalSize;
    }

    public List getData() {
        return data;
    }

    public void setData(List data) {
        this.data = data;
    }

    @JsonIgnore
    public int getTotalPage() {
        return (int)Math.ceil((float)totalSize / pageSize);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy