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

com.luoshu.open.id.ui.model.Page Maven / Gradle / Ivy

There is a newer version: 0.32
Show newest version
package com.luoshu.open.id.ui.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author inme
 */
@Data
@NoArgsConstructor
public class Page {

    private int pageSize;

    private int count;

    private int totalPage;

    private List list;

    public Page(List list , int count , int pageSize){
        this.list = list;
        this.pageSize = pageSize;
        this.count = count;

        int m = count % pageSize;
        this.totalPage = count / pageSize;
        if(m > 0){
            this.totalPage += 1;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy