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

com.wichell.framework.pagination.Page Maven / Gradle / Ivy

package com.wichell.framework.pagination;

import java.util.List;

public class Page {
	private Long cnt;
	private Long totalPage;
	private List results;
	public Long getCnt() {
		return cnt;
	}
	
	
	public Long getTotalPage() {
		return (cnt + totalPage -1) / totalPage;
	}


	public void setTotalPage(Long totalPage) {
		this.totalPage = totalPage;
	}



	public Page(Long cnt, List results) {
		super();
		this.cnt = cnt;
		this.results = results;
	}
	
	public Page(Long cnt, Long totalPage, List results) {
		super();
		this.cnt = cnt;
		this.totalPage = totalPage;
		this.results = results;
	}

	public void setCnt(Long cnt) {
		this.cnt = cnt;
	}

	public List getResults() {
		return results;
	}

	public void setResults(List results) {
		this.results = results;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy